run app on ipv4 localhost, chrome on osx disables ipv6 if no global ipv6 address is present

This commit is contained in:
j 2015-02-22 16:53:06 +05:30
parent ad0a2a7b03
commit 689daa37db
4 changed files with 4 additions and 4 deletions

2
ctl
View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
HOST="[::1]:9842"
HOST="127.0.0.1:9842"
NAME="openmedialibrary"
PID="/tmp/$NAME.$USER.pid"

View File

@ -102,7 +102,7 @@ def run():
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

@ -36,7 +36,7 @@ ui = pdict(os.path.join(config_path, 'ui.json'), config['user']['ui'])
server = pdict(os.path.join(config_path, 'server.json'))
server_defaults = {
'port': 9842,
'address': '::1',
'address': '127.0.0.1',
'node_port': 9851,
'node_address': '',
'extract_text': True,

View File

@ -18,7 +18,7 @@
var port = document.location.hash.length
? document.location.hash.slice(1)
: '9842',
base = '//[::1]:' + port,
base = '//127.0.0.1:' + port,
ws = new WebSocket('ws:' + base + '/ws');
ws.onopen = function(event) {
document.location.href = 'http:' + base;