(conf config.Config)
| 127 | } |
| 128 | |
| 129 | func 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 | |
| 138 | func (a *InternalServer) allow(username, password string, addr net.IP) { |
| 139 | a.lock.Lock() |
no test coverage detected