Versions in this module Expand all Collapse all v0 v0.0.3 Feb 28, 2024 Changes in this version + const Realm + type Entry struct + type ExternalServer struct + func (a *ExternalServer) Credentials(id string, addr net.IP) (string, string) + func (a *ExternalServer) Disallow(username string) + type Generator struct + IPProvider ipdns.Provider + func (r *Generator) AllocatePacketConn(network string, requestedPort int) (net.PacketConn, net.Addr, error) + type InternalServer struct + func (a *InternalServer) Credentials(id string, addr net.IP) (string, string) + func (a *InternalServer) Disallow(username string) + type RelayAddressGeneratorNone struct + func (r *RelayAddressGeneratorNone) AllocateConn(network string, requestedPort int) (net.Conn, net.Addr, error) + func (r *RelayAddressGeneratorNone) AllocatePacketConn(network string, requestedPort int) (net.PacketConn, net.Addr, error) + func (r *RelayAddressGeneratorNone) Validate() error + type RelayAddressGeneratorPortRange struct + MaxPort uint16 + MinPort uint16 + Rand randutil.MathRandomGenerator + func (r *RelayAddressGeneratorPortRange) AllocateConn(network string, requestedPort int) (net.Conn, net.Addr, error) + func (r *RelayAddressGeneratorPortRange) AllocatePacketConn(network string, requestedPort int) (net.PacketConn, net.Addr, error) + func (r *RelayAddressGeneratorPortRange) Validate() error + type Server interface + Credentials func(id string, addr net.IP) (string, string) + Disallow func(username string) + func Start(conf config.Config) (Server, error)