File tree 1 file changed +1
-3
lines changed
Filter options
1 file changed +1
-3
lines changed
Original file line number Diff line number Diff line change @@ -1237,7 +1237,6 @@ def __init__(self, bindaddress=None):
1237
1237
else :
1238
1238
self .intf = bindaddress
1239
1239
log .debug ('Bind address is %r' % (self .intf ,))
1240
- self .group = ('' , _MDNS_PORT )
1241
1240
self .socket = socket .socket (socket .AF_INET , socket .SOCK_DGRAM )
1242
1241
self .socket .setsockopt (socket .SOL_SOCKET , socket .SO_REUSEADDR , 1 )
1243
1242
@@ -1256,8 +1255,7 @@ def __init__(self, bindaddress=None):
1256
1255
self .socket .setsockopt (socket .IPPROTO_IP , socket .IP_MULTICAST_TTL , 255 )
1257
1256
self .socket .setsockopt (socket .IPPROTO_IP , socket .IP_MULTICAST_LOOP , 1 )
1258
1257
try :
1259
- log .debug ('Binding to %r' , self .group )
1260
- self .socket .bind (self .group )
1258
+ self .socket .bind (('' , _MDNS_PORT ))
1261
1259
except Exception as e : # TODO stop catching all Exceptions
1262
1260
# Some versions of linux raise an exception even though
1263
1261
# the SO_REUSE* options have been set, so ignore it
You can’t perform that action at this time.
0 commit comments