Johni0702 / mumble-web-proxy

Mumble to WebSocket+WebRTC proxy for use with mumble-web
70 stars 25 forks source link

mumble-web-proxy fails to run when server has ipv6 disabled? #32

Closed surfrock66 closed 2 years ago

surfrock66 commented 3 years ago

I had mumble-web-proxy working, but for another service I had to disable ipv6. Now when I run mumble-web-proxy, I get the following output:

Error: Io(Os { code: 97, kind: Other, message: "Address family not supported by protocol" })

I recompiled just in case this was something impacted at build time, and it didn't change anything.

surfrock66 commented 3 years ago

So I don't know rust, but if I open up main.js and change line 181 from this:

let socket_addr = (Ipv6Addr::from(0), ws_port);

to this:

let socket_addr = (Ipv4Addr::from(0), ws_port);

It works on ipv4. It seems the better solution is to check if ipv6 is working, THEN fall back to ipv4 on failure so that socket_addr gets populated first by v6 then v4, but I'm not familiar enough with rust to do that properly. For now, my local branch is working.

Skgland commented 2 years ago

@surfrock66 did you have a change to see if #33 has solved your problem?

surfrock66 commented 2 years ago

I hadn't seen that, I'll try it out when I get a chance today and report back, thanks!

surfrock66 commented 2 years ago

As far as I can tell it's good to go, thanks!