[FIX] service: used default http port and net rpc port from config

bzr revid: hmo@tinyerp.com-20091126093155-k8wdgq4elnlk1aag
This commit is contained in:
Harry (Open ERP)
2009-11-26 15:01:55 +05:30
parent fba200b90a
commit 32c1411ebd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ def init_servers():
global httpd, httpsd
if tools.config.get_misc('httpd','enable', True):
httpd = HttpDaemon(tools.config.get_misc('httpd','interface', ''), \
tools.config.get_misc('httpd','port', 8069))
tools.config.get_misc('httpd','port', int(tools.config.get('port',8069))))
if tools.config.get_misc('httpsd','enable', False):
httpsd = HttpSDaemon(tools.config.get_misc('httpsd','interface', ''), \
+1 -1
View File
@@ -160,4 +160,4 @@ def init_servers():
global netrpcd
if tools.config.get_misc('netrpcd','enable', True):
netrpcd = TinySocketServerThread(tools.config.get_misc('netrpcd','interface', ''), \
tools.config.get_misc('netrpcd','port', 8070))
tools.config.get_misc('netrpcd','port', int(tools.config.get('netport', 8070))))