Documentation ¶
Index ¶
- Constants
- Variables
- type MaxConnectionsPerUserEnum
- type Server
- func (s *Server) Close()
- func (s *Server) Serve() error
- func (s *Server) SetHeaders(headers http.Header)
- func (s *Server) SetLocalFeature(feature features.Feature, enabled bool)
- func (s *Server) SetMTU(mtu int) error
- func (s *Server) SetServerID(serverID string)
- func (s *Server) UpdateSocketConfig() error
- type SocketStruct
Constants ¶
View Source
const ReadHeaderTimeout = time.Duration(10) * time.Second
Variables ¶
View Source
var ErrNoServeWaitsLeft = errors.New("no serve waits left")
Functions ¶
This section is empty.
Types ¶
type MaxConnectionsPerUserEnum ¶
type MaxConnectionsPerUserEnum = int
const ( MaxConnectionsPerUserKillOldest MaxConnectionsPerUserEnum = 0 MaxConnectionsPerUserPreventNew MaxConnectionsPerUserEnum = 1 )
type Server ¶
type Server struct { shared.EventConfigHolder PacketHandler sockets.PacketHandler VPNNet *shared.VPNNet DoLocalIPConfig bool DoRemoteIPConfig bool TLSConfig *tls.Config ListenAddr string HTTP3Enabled bool Authenticator authenticators.Authenticator Mode shared.VPNMode SocketConfigurator sockets.SocketConfigurator InterfaceConfig *iface.InterfaceConfig MaxConnectionsPerUser int MaxConnectionsPerUserMode MaxConnectionsPerUserEnum WebsiteDirectory string APIEnabled bool APIUsers map[string]bool // contains filtered or unexported fields }
func (*Server) SetHeaders ¶
func (*Server) SetLocalFeature ¶
func (*Server) SetServerID ¶
func (*Server) UpdateSocketConfig ¶
Click to show internal directories.
Click to hide internal directories.