From cf4833573a01a900bf915dd79bda160b7cb22dc0 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 21 Dec 2020 16:03:57 +0100 Subject: [PATCH] Use IPv6 addresses Signed-off-by: Yohann D'ANELLO --- squinnondation/squinnondation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squinnondation/squinnondation.py b/squinnondation/squinnondation.py index 3ef127c..6cbd118 100644 --- a/squinnondation/squinnondation.py +++ b/squinnondation/squinnondation.py @@ -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}")