Versions in this module Expand all Collapse all v1 v1.0.1 Mar 25, 2025 Changes in this version + type AuthCallbackFunc func(r *settings.Remote) bool + type Config struct + Auth string + AuthCallback AuthCallbackFunc + AuthFile string + KeepAlive time.Duration + KeyFile string + KeySeed string + Proxy string + Reverse bool + Socks5 bool + TLS TLSConfig + type Server struct + func NewServer(c *Config) (*Server, error) + func (s *Server) AddUser(user, pass string, addrs ...string) error + func (s *Server) Close() error + func (s *Server) DeleteUser(user string) + func (s *Server) GetFingerprint() string + func (s *Server) HandleClientHandler(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleWebsocket(w http.ResponseWriter, req *http.Request) + func (s *Server) ResetUsers(users []*settings.User) + func (s *Server) Run(host, port string) error + func (s *Server) Start(host, port string) error + func (s *Server) StartContext(ctx context.Context, host, port string) error + func (s *Server) Wait() error + type TLSConfig struct + CA string + Cert string + Domains []string + Key string