Use own STUN fallback server

fixes #1078
This commit is contained in:
fiaxh 2021-08-03 13:37:36 +02:00
parent 7cedb64d3f
commit 83fcc295fe

View file

@ -41,13 +41,13 @@ public class Dino.Plugins.Ice.Plugin : RootInterface, Object {
}
}
if (ice_udp_module.stun_ip == null) {
InetAddress ip = yield lookup_ipv4_addess("stun.l.google.com");
InetAddress ip = yield lookup_ipv4_addess("stun.dino.im");
if (ip == null) return;
debug("Using fallback STUN server: stun.l.google.com:19302, resolved to %s", ip.to_string());
debug("Using fallback STUN server: stun.dino.im:7886, resolved to %s", ip.to_string());
ice_udp_module.stun_ip = ip.to_string();
ice_udp_module.stun_port = 19302;
ice_udp_module.stun_port = 7886;
}
}