mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
refactor(app): 885 Add ignore comment since SO attr not supported to Win
This commit is contained in:
@ -901,7 +901,7 @@ class QUICListener(IListener):
|
||||
# Set socket options
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
if hasattr(socket, "SO_REUSEPORT"):
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) # type: ignore[attr-defined]
|
||||
|
||||
# Bind to address
|
||||
await sock.bind((host, port))
|
||||
|
||||
Reference in New Issue
Block a user