sstp

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{ Config Config }

func NewClient

func NewClient(config Config) *Client

func (*Client) Start

func (c *Client) Start(ctx context.Context) (*govpn.Session, error)

type Config

type Config struct {
	Server       string
	Port         int
	Username     string
	Password     string
	CA           []byte
	ServerName   string
	SkipVerify   bool
	PrefixLength int
	Logger       *log.Logger
}

type Server

type Server struct{ Config ServerConfig }

func NewServer

func NewServer(config ServerConfig) *Server

func (*Server) Start

func (s *Server) Start(ctx context.Context) (*govpn.Session, error)

type ServerConfig

type ServerConfig struct {
	Cert       []byte
	Key        []byte
	ListenIP   string
	ListenPort int
	Pool       string
	DNS        []net.IP
	Users      map[string]string
	// Shape is retained for source compatibility and rejected when non-zero;
	// traffic shaping is not part of SSTP.
	Shape  int
	Logger *log.Logger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL