Code: Select all
sander@R540:~/SABnzbd-0.7.2RC1$ python SABnzbd.py
Into get_webhost ...
('cherryhost 1 is %s', None)
('cherryhost 2 is %s', None)
('cherryhost 3 is %s', '::')
('cherryhost 5 is %s', '::')
('cherryhost 666 is %s', '::')
2012-07-13 11:25:15,112::INFO::[SABnzbd:1292] --------------------------------
This is the code in SABnzbd.py:
Code: Select all
#------------------------------------------------------------------------------
def get_webhost(cherryhost, cherryport, https_port):
""" Determine the webhost address and port,
return (host, port, browserhost)
"""
print('Into get_webhost ...') # SJ
print("cherryhost 1 is %s", cherryhost) # SJ
if cherryhost == '0.0.0.0' and not ipv_localhost('4'):
cherryhost = ''
elif cherryhost == '::' and not ipv_localhost('6'):
cherryhost = ''
print("cherryhost 2 is %s", cherryhost) # SJ
if cherryhost is None:
cherryhost = sabnzbd.cfg.cherryhost()
else:
sabnzbd.cfg.cherryhost.set(cherryhost)
print("cherryhost 3 is %s", cherryhost) # SJ
