Comments (7)
Hi Mark - appreciate the feedback.
I'll merge the code that will do this in the next few minutes.
from multicast-relay.
Thank you so much for the quick response and fix!
I just tried it out and getting an exception. This appears to be a python3 vs python2 syntax issue. Will see if there is a quick fix, otherwise, will install python2 on this system.
eusmark@fe1-net2-relay: $ git clone https://github.com/alsmith/multicast-relay.git
Cloning into 'multicast-relay'...
remote: Enumerating objects: 324, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 324 (delta 16), reused 24 (delta 16), pack-reused 295
Receiving objects: 100% (324/324), 119.07 KiB | 812.00 KiB/s, done.
Resolving deltas: 100% (194/194), done.
eusmark@fe1-net2-relay: $ cd multicast-relay
eusmark@fe1-net2-relay: multicast-relay$ sudo python3 ./multicast-relay.py --interfaces ens160 --listen 10.111.25.0/27 --noMDNS --noSSDP --noSonosDiscovery --relay 239.255.255.250:3702 --verbose --foreground
Apr-28 09:41:45 ./multicast-relay.py INFO: Adding multicast relay for 239.255.255.250:3702
Traceback (most recent call last):
File "./multicast-relay.py", line 1028, in
sys.exit(main())
File "./multicast-relay.py", line 1025, in main
packetRelay.loop()
File "./multicast-relay.py", line 507, in loop
if not len(list(filter(lambda addr: PacketRelay.onNetwork(remoteAddr[0], addr[0], PacketRelay.cidrToNetmask(addr[1])), self.listenAddr))):
File "./multicast-relay.py", line 507, in
if not len(list(filter(lambda addr: PacketRelay.onNetwork(remoteAddr[0], addr[0], PacketRelay.cidrToNetmask(addr[1])), self.listenAddr))):
File "./multicast-relay.py", line 874, in cidrToNetmask
return socket.inet_ntoa(struct.pack('!I', (1 << 32) - (1 << (32 - bits))))
TypeError: unsupported operand type(s) for -: 'int' and 'str'
eusmark@fe1-net2-relay:~/multicast-relay$
from multicast-relay.
Fix pushed - sorry about that.
from multicast-relay.
Just tested and works like a champ! Thank you!
from multicast-relay.
Will this continue to work on python2 as well?
from multicast-relay.
Can you give it a try... I took the plunge a while ago:
multicast-relay> python2 ./multicast-relay.py
zsh: correct 'python2' to 'python3' [nyae]? n
zsh: command not found: python2
multicast-relay>
from multicast-relay.
But basically if it worked on python2 yesterday, it will still work today.
from multicast-relay.
Related Issues (20)
- Tutorial HOT 8
- Proxy SSDP HOT 1
- noTransmitInterfaces, ifFilter… Confusion HOT 8
- Debian 11 compatibility HOT 1
- Multiple Networks? HOT 45
- 'relay' option doesn't capture UPD packets HOT 1
- Android client can't see Chromecast Speaker Groups HOT 3
- Devices from Excluded VLANs Show Up in Logs HOT 8
- One to one communication HOT 3
- Breaking update for --listen HOT 2
- Issues with mDNS and Airplay devices HOT 5
- Not all broadcast addresses are accepted
- --ifFilter HOT 2
- Help for anyone moving to UDM Pro v2.4.23 HOT 23
- OpenWRT and python3 HOT 4
- Devices not discoverable HOT 1
- Any Chance to add Wake On Lan? HOT 1
- latest commit broken HOT 1
- /healthz healthcheck endpoint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multicast-relay.