--- 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,
)
--- 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)