1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-29 11:00:55 +02:00

Make STUN server configurable

This commit is contained in:
Alexandre Iooss
2020-09-29 17:27:19 +02:00
parent 1c98754624
commit 95f4b81f01
6 changed files with 24 additions and 15 deletions

View File

@ -55,6 +55,10 @@ func loadConfiguration() {
viper.SetDefault("Web.Favicon", "/favicon.ico")
viper.SetDefault("WebRTC.MinPortUDP", 10000)
viper.SetDefault("WebRTC.MaxPortUDP", 10005)
viper.SetDefault("WebRTC.STUNServers", []string{"stun:stun.l.google.com:19302"})
// Copy STUN configuration to clients
viper.Set("Web.STUNServers", viper.Get("WebRTC.STUNServers"))
}
func main() {