Browse Source

In case HTTPS = HTTP port, save the correct port when occupied

pull/784/head
Safihre 8 years ago
parent
commit
6602d13c95
  1. 5
      SABnzbd.py

5
SABnzbd.py

@ -1071,12 +1071,15 @@ def main():
if new_instance or not check_for_sabnzbd(url, upload_nzbs, autobrowser):
newport = find_free_port(browserhost, port)
if newport > 0:
sabnzbd.cfg.https_port.set(newport)
notify_port_change = True
# Save the new port
if https_port:
https_port = newport
sabnzbd.cfg.https_port.set(newport)
else:
# In case HTTPS == HTTP port
http_port = newport
sabnzbd.cfg.port.set(newport)
except:
Bail_Out(browserhost, cherryport, '49')

Loading…
Cancel
Save