Use IPv6 addresses

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2020-12-21 16:03:57 +01:00
parent abbcbbc3b1
commit cf4833573a
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ class Squirrel(Hazelnut):
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.socket = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
self.socket.bind((self.address, self.port))
print(f"Listening on {self.address}:{self.port}")