-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
Feature description
I'd suggest that we resolve our own STUN servers via DNS SRV. This will allow us to change the domain name and IP address of our own STUN server without having to patch Syncthing.
This should be enough to fend off most non-Syncthing users.
If there's a consensus that this is a viable approach, I'd start working on a PR.
Problem or use case
As previously discussed on the forum, we may still want to host our own STUN server. The problem with such a service is that it tends to be abused by others, which ultimately led to the current server being shut down. Any hardcoded address in the codebase is likely to suffer the same fate sooner or later.
see https://forum.syncthing.net/t/stun-syncthing-net-doesnt-resolve-anymore/24075/8
Alternatives or workarounds
Static secrets for the STUN server, but this could suffer the same fate. Anything that can simply be hardcoded into a WebRTC page will eventually be abused. DNS SRV requires backend logic, which should deter more offenders.