alsmith / multicast-relay

Relay multicast and broadcast packets between interfaces.
GNU General Public License v3.0
318 stars 50 forks source link

UnboundLocalError when using the ssdpUnicastAddr flag #40

Closed kidhasmoxy closed 4 years ago

kidhasmoxy commented 4 years ago

Upgraded to the latest commit off master, and now my container immediately crashes when using the ssdpUnicastAddr flag. I like using this flag to make my firewall rules simpler to manage, so hoping it isn't dropped.

` Traceback (most recent call last):

File "multicast-relay.py", line 990, in

sys.exit(main())

File "multicast-relay.py", line 985, in main

packetRelay.addListener(addr, port, relay[1])

File "multicast-relay.py", line 304, in addListener

self.transmitters.append({'relay': {'addr': listenIP, 'port': port}, 'interface': ifname, 'addr': ip, 'mac': mac, 'netmask': netmask, 'broadcast': broadcast, 'socket': tx, 'service': service})

UnboundLocalError: local variable 'listenIP' referenced before assignment `

alsmith commented 4 years ago

Fix checked in - will merge to master.