dont use ipv6 localhost, chrome disables ipv6 if no global link is available
This commit is contained in:
parent
a679989f8d
commit
89cde6d767
3 changed files with 7 additions and 7 deletions
10
README.md
10
README.md
|
@ -15,19 +15,19 @@
|
||||||
# register your application
|
# register your application
|
||||||
|
|
||||||
register application
|
register application
|
||||||
POST http://[::1]:8842/add
|
POST http://127.0.0.1:8842/add
|
||||||
{
|
{
|
||||||
"name": "yourappname",
|
"name": "yourappname",
|
||||||
"url": "http://[::1]:YOURPORT/remote/"
|
"url": "http://127.0.0.1:YOURPORT/remote/"
|
||||||
}
|
}
|
||||||
|
|
||||||
now peers can make requetss to
|
now peers can make requetss to
|
||||||
|
|
||||||
GET|POST http://[::1]:8842/<peer id>/PATH
|
GET|POST http://127.0.0.1:8842/<peer id>/PATH
|
||||||
|
|
||||||
that get proxied and end up on <peer id> at
|
that get proxied and end up on <peer id> at
|
||||||
|
|
||||||
GET|POST http://[::1]:YOURPORT/remote/PATH
|
GET|POST http://127.0.0.1:YOURPORT/remote/PATH
|
||||||
|
|
||||||
requests have a From: header to indicate the
|
requests have a From: header to indicate the
|
||||||
remote peer id making the request
|
remote peer id making the request
|
||||||
|
@ -36,6 +36,6 @@ remote peer id making the request
|
||||||
|
|
||||||
peerlink discovers peers in the local network,
|
peerlink discovers peers in the local network,
|
||||||
|
|
||||||
GET http://[::1]:8842/info
|
GET http://127.0.0.1:8842/info
|
||||||
|
|
||||||
contains info on currently visible peers
|
contains info on currently visible peers
|
||||||
|
|
|
@ -120,7 +120,7 @@ def run(root_dir=None):
|
||||||
if ':' in settings.server['address']:
|
if ':' in settings.server['address']:
|
||||||
host = '[%s]' % settings.server['address']
|
host = '[%s]' % settings.server['address']
|
||||||
elif not settings.server['address']:
|
elif not settings.server['address']:
|
||||||
host = '[::1]'
|
host = '127.0.0.1'
|
||||||
else:
|
else:
|
||||||
host = settings.server['address']
|
host = settings.server['address']
|
||||||
url = 'http://%s:%s/' % (host, settings.server['port'])
|
url = 'http://%s:%s/' % (host, settings.server['port'])
|
||||||
|
|
|
@ -20,7 +20,7 @@ tls_key_path = os.path.join(config_path, 'node.tls.key')
|
||||||
|
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
"address": "::1",
|
"address": "127.0.0.1",
|
||||||
"port": 8842,
|
"port": 8842,
|
||||||
"node_address": "",
|
"node_address": "",
|
||||||
"node_port": 8851,
|
"node_port": 8851,
|
||||||
|
|
Loading…
Reference in a new issue