Add built-in TURN server.
This commit is contained in:
@@ -14,6 +14,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/pion/webrtc/v3"
|
||||
|
||||
"github.com/jech/galene/turnserver"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
@@ -101,6 +103,8 @@ func updateICEConfiguration() *configuration {
|
||||
}
|
||||
}
|
||||
|
||||
cf.ICEServers = append(cf.ICEServers, turnserver.ICEServers()...)
|
||||
|
||||
if ICERelayOnly {
|
||||
cf.ICETransportPolicy = webrtc.ICETransportPolicyRelay
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user