Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 903cb78

Browse filesBrowse files
committed
Stop using Zeroconf.group attribute
1 parent 80e8e10 commit 903cb78
Copy full SHA for 903cb78

File tree

1 file changed

+1
-3
lines changed
Filter options

1 file changed

+1
-3
lines changed

‎zeroconf.py

Copy file name to clipboardExpand all lines: zeroconf.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,6 @@ def __init__(self, bindaddress=None):
12371237
else:
12381238
self.intf = bindaddress
12391239
log.debug('Bind address is %r' % (self.intf,))
1240-
self.group = ('', _MDNS_PORT)
12411240
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
12421241
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
12431242

@@ -1256,8 +1255,7 @@ def __init__(self, bindaddress=None):
12561255
self.socket.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 255)
12571256
self.socket.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_LOOP, 1)
12581257
try:
1259-
log.debug('Binding to %r', self.group)
1260-
self.socket.bind(self.group)
1258+
self.socket.bind(('', _MDNS_PORT))
12611259
except Exception as e: # TODO stop catching all Exceptions
12621260
# Some versions of linux raise an exception even though
12631261
# the SO_REUSE* options have been set, so ignore it

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.