diff --git a/ctl b/ctl index f3ba771..2bd84cb 100755 --- a/ctl +++ b/ctl @@ -1,5 +1,5 @@ #!/usr/bin/env bash -HOST="[::1]:9842" +HOST="127.0.0.1:9842" NAME="openmedialibrary" PID="/tmp/$NAME.$USER.pid" diff --git a/oml/server.py b/oml/server.py index 0572e8d..d551155 100644 --- a/oml/server.py +++ b/oml/server.py @@ -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']) diff --git a/oml/settings.py b/oml/settings.py index f564cf6..39d5f31 100644 --- a/oml/settings.py +++ b/oml/settings.py @@ -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, diff --git a/static/html/load.html b/static/html/load.html index 18d8437..64ddb9d 100644 --- a/static/html/load.html +++ b/static/html/load.html @@ -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;