MCPcopy Index your code
hub / github.com/screego/server / newExternalServer

Function newExternalServer

turn/server.go:77–82  ·  view source on GitHub ↗
(conf config.Config)

Source from the content-addressed store, hash-verified

75}
76
77func newExternalServer(conf config.Config) (Server, error) {
78 return &ExternalServer{
79 secret: []byte(conf.TurnExternalSecret),
80 ttl: 24 * time.Hour,
81 }, nil
82}
83
84func newInternalServer(conf config.Config) (Server, error) {
85 udpListener, err := net.ListenPacket("udp", conf.TurnAddress)

Callers 1

StartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected