Switch default proxy STUN server to stun.l.google.com

This is the same default that the web-based proxies use. Proxies do not
need RFC 5780 compatible STUN servers.
This commit is contained in:
Cecylia Bocovich 2022-12-31 09:57:36 -05:00
parent 936a1f8138
commit f6fa51d749
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
3 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ websocket relay URL (default "wss://snowflake.torproject.net/")
.HP
\fB\-stun\fR string
.IP
stun URL (default "stun:stun.stunprotocol.org:3478")
stun URL (default "stun:stun.l.google.com:19302")
.HP
\fB\-unsafe\-logging\fR
.IP

View file

@ -48,7 +48,7 @@ Usage of ./proxy:
-relay string
websocket relay URL (default "wss://snowflake.bamsoftware.com/")
-stun string
STUN URL (default "stun:stun.stunprotocol.org:3478")
stun URL (default "stun:stun.l.google.com:19302")
-summary-interval duration
the time interval to output summary, 0s disables summaries. Valid time units are "s", "m", "h". (default 1h0m0s)
-unsafe-logging

View file

@ -7,7 +7,7 @@ will be set to the defined defaults.
proxy := snowflake_proxy.SnowflakeProxy{
BrokerURL: "https://snowflake-broker.example.com",
STUNURL: "stun:stun.stunprotocol.org:3478",
STUNURL: "stun:stun.l.google.com:19302",
// ...
}
@ -57,7 +57,7 @@ const DefaultNATProbeURL = "https://snowflake-broker.torproject.net:8443/probe"
const DefaultRelayURL = "wss://snowflake.bamsoftware.com/"
const DefaultSTUNURL = "stun:stun.stunprotocol.org:3478"
const DefaultSTUNURL = "stun:stun.l.google.com:19302"
const DefaultProxyType = "standalone"
const pollInterval = 5 * time.Second