Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server string
Port int
Hub string
Username string
Password string
AuthType AuthType
ClientCert []byte
ClientKey []byte
Address string
Gateway string
CA []byte
ServerName string
SkipVerify bool
MaxConnections int
DisableEncryption bool
EnableCompression bool
HalfConnection bool
EnableQoS bool
DHCPTimeout time.Duration
Logger *log.Logger
}
type Server ¶
type Server struct{ Config ServerConfig }
func NewServer ¶
func NewServer(config ServerConfig) *Server
type ServerConfig ¶
type ServerConfig struct {
Cert []byte
Key []byte
ListenIP string
ListenPort int
Hub string
Pool string
Users map[string]string
AnonymousUsers map[string]bool
UserCertificates map[string][]byte
DNS []string
EnableCompression bool
DisableEncryption bool
MaxConnections int
MTU int
Logger *log.Logger
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.