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:
4
main.go
4
main.go
@ -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() {
|
||||
|
Reference in New Issue
Block a user