Fix listener logic

This commit is contained in:
TheKysek 2017-01-14 13:45:39 +01:00
parent b5fce64619
commit 0c5c58e126

View File

@ -70,7 +70,7 @@ def main():
listener_ipv4 = None
listener_ipv6 = None
if not shared.listen_for_connections:
if shared.listen_for_connections:
if socket.has_ipv6:
try:
listener_ipv6 = Listener('', shared.listening_port, family=socket.AF_INET6)