# HG changeset patch # User Boris Feld # Date 1498787132 -7200 # Node ID af4f0c74f8b5226452130b8d4fec7397522d037d # Parent ac96ff471c9a8b54d85748e7fb9286ee4c62830c configitems: register the 'web.address' config diff -r ac96ff471c9a -r af4f0c74f8b5 mercurial/configitems.py --- a/mercurial/configitems.py Fri Jun 30 03:45:31 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 30 03:45:32 2017 +0200 @@ -585,6 +585,9 @@ coreconfigitem('web', 'accesslog', default='-', ) +coreconfigitem('web', 'address', + default='', +) coreconfigitem('worker', 'backgroundclose', default=dynamicdefault, ) diff -r ac96ff471c9a -r af4f0c74f8b5 mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py Fri Jun 30 03:45:31 2017 +0200 +++ b/mercurial/hgweb/server.py Fri Jun 30 03:45:32 2017 +0200 @@ -326,7 +326,7 @@ mimetypes.init() sys.setdefaultencoding(oldenc) - address = ui.config('web', 'address', '') + address = ui.config('web', 'address') port = util.getport(ui.config('web', 'port', 8000)) try: return cls(ui, app, (address, port), handler)