Browse Source

Only warn about identical port for HTTP and HTTPS when HTTPS is actually enabled.

pull/7/merge
shypike 14 years ago
parent
commit
96e1b81179
  1. 2
      SABnzbd.py

2
SABnzbd.py

@ -621,7 +621,7 @@ def get_webhost(cherryhost, cherryport, https_port):
# if the https port was specified, assume they want HTTPS enabling also
sabnzbd.cfg.enable_https.set(True)
if cherryport == https_port:
if cherryport == https_port and sabnzbd.cfg.enable_https():
sabnzbd.cfg.enable_https.set(False)
# Should have a translated message, but that's not available yet
#logging.error(Ta('HTTP and HTTPS ports cannot be the same'))

Loading…
Cancel
Save