We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdd021f + 1677065 commit bc5856cCopy full SHA for bc5856c
1 file changed
tests/test_probing.py
@@ -17,7 +17,8 @@ def mock_register(selector, rsock, evtmask):
17
global sck
18
# The Probe is sent multicast, we use that to identify the right socket.
19
# Identification could be done better, but this is enough for now.
20
- if rsock.getsockname()[1] == MULTICAST_PORT:
+ if (rsock.proto == socket.IPPROTO_UDP and
21
+ rsock.getsockname()[1] == MULTICAST_PORT):
22
sck = rsock
23
24
def mock_select(*args):
0 commit comments