summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 6ac0046f1..c95cae2c2 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -165,8 +165,8 @@ def opensearch():
method = 'get'
if request.is_secure:
scheme = 'https'
- if settings.hostname:
- hostname = '{0}://{1}/'.format(scheme,settings.hostname)
+ if settings.base_url:
+ hostname = settings.base_url
else:
hostname = url_for('index', _external=True, _scheme=scheme)
ret = opensearch_xml.format(method=method, host=hostname)