configitems: register the 'web.address' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:45:32 +0200
changeset 34228 af4f0c74f8b5
parent 34227 ac96ff471c9a
child 34229 6742e18e41f0
configitems: register the 'web.address' config
mercurial/configitems.py
mercurial/hgweb/server.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,
 )
--- 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)