refactor(app): 885 Add ignore comment since SO attr not supported to Win

This commit is contained in:
yashksaini-coder
2025-09-06 02:00:19 +05:30
parent aa2a650f85
commit a69db8a716

View File

@ -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))