Browse Source

Only allow binding to IPv6 when ipv6_hosting enabled

For some reason it was always binding to IPv6, even when disabled (on Windows)
tags/1.1.1RC3
Safihre 9 years ago
committed by shypike
parent
commit
809b11c2f3
  1. 5
      SABnzbd.py

5
SABnzbd.py

@ -533,7 +533,8 @@ def all_localhosts():
ips = []
for item in info:
item = item[4][0]
if item not in ips:
# Only return IPv6 when enabled
if item not in ips and ('::1' not in item or sabnzbd.cfg.ipv6_hosting()):
ips.append(item)
return ips
@ -1400,7 +1401,7 @@ def main():
hosts[1] = '::1'
# The Windows binary requires numeric localhost as primary address
if multilocal and cherryhost == 'localhost':
if cherryhost == 'localhost':
cherryhost = hosts[0]
if enable_https:

Loading…
Cancel
Save