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

Function generator

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

Source from the content-addressed store, hash-verified

127}
128
129func generator(conf config.Config) turn.RelayAddressGenerator {
130 min, max, useRange := conf.PortRange()
131 if useRange {
132 log.Debug().Uint16("min", min).Uint16("max", max).Msg("Using Port Range")
133 return &RelayAddressGeneratorPortRange{MinPort: min, MaxPort: max}
134 }
135 return &RelayAddressGeneratorNone{}
136}
137
138func (a *InternalServer) allow(username, password string, addr net.IP) {
139 a.lock.Lock()

Callers 1

newInternalServerFunction · 0.85

Calls 1

PortRangeMethod · 0.80

Tested by

no test coverage detected