dont use ipv6 localhost, chrome disables ipv6 if no global link is available

This commit is contained in:
j 2015-02-26 14:14:53 +05:30
parent a679989f8d
commit 89cde6d767
3 changed files with 7 additions and 7 deletions

View file

@ -15,19 +15,19 @@
# register your application
register application
POST http://[::1]:8842/add
POST http://127.0.0.1:8842/add
{
"name": "yourappname",
"url": "http://[::1]:YOURPORT/remote/"
"url": "http://127.0.0.1:YOURPORT/remote/"
}
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 &lt;peer id&gt; 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
remote peer id making the request
@ -36,6 +36,6 @@ remote peer id making the request
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

View file

@ -120,7 +120,7 @@ def run(root_dir=None):
if ':' in settings.server['address']:
host = '[%s]' % settings.server['address']
elif not settings.server['address']:
host = '[::1]'
host = '127.0.0.1'
else:
host = settings.server['address']
url = 'http://%s:%s/' % (host, settings.server['port'])

View file

@ -20,7 +20,7 @@ tls_key_path = os.path.join(config_path, 'node.tls.key')
defaults = {
"address": "::1",
"address": "127.0.0.1",
"port": 8842,
"node_address": "",
"node_port": 8851,