Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDialer ¶
func NewDialer(path string) (*wiredialer.WireDialer, error)
NewDialer returns a new wiredialer.WireDialer from a WireGuard configuration file.
func NewResolver ¶ added in v1.1.0
func NewResolver(d *wiredialer.WireDialer, localDNS bool) (*resolver, error)
NewResolver creates a new Resolver.
func ParseBypassList ¶ added in v1.2.2
Types ¶
type HTTPServer ¶
type HTTPServer struct {
Address string
Username string
Password string
Dialer *wiredialer.WireDialer
BypassList []*net.IPNet
Resolver Resolver
// contains filtered or unexported fields
}
func (*HTTPServer) ListenAndServe ¶
func (s *HTTPServer) ListenAndServe() error
ListenAndServe listens on the s.Address and serves HTTP requests.
func (*HTTPServer) ServeHTTP ¶
func (s *HTTPServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the http.Handler interface.
type SOCKS5Server ¶
type SOCKS5Server struct {
Address string
Username string
Password string
EnableLog bool
Dialer *wiredialer.WireDialer
BypassList []*net.IPNet
Resolver Resolver
// contains filtered or unexported fields
}
func (*SOCKS5Server) ListenAndServe ¶
func (s *SOCKS5Server) ListenAndServe() error
ListenAndServe listens on the s.Address and serves SOCKS5 requests.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.