shadowsocks

package
v0.0.0-...-b617006 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShadowsocksFromLink(option *dialer.ExtraOption, nextDialer netproxy.Dialer, link string) (npd netproxy.Dialer, property *dialer.Property, err error)

Types

type Shadowsocks

type Shadowsocks struct {
	Name     string `json:"name"`
	Server   string `json:"server"`
	Port     int    `json:"port"`
	Password string `json:"password"`
	Cipher   string `json:"cipher"`
	Plugin   Sip003 `json:"plugin"`
	UDP      bool   `json:"udp"`
	Protocol string `json:"protocol"`
}

func ParseSSURL

func ParseSSURL(u string) (data *Shadowsocks, err error)

func (*Shadowsocks) Dialer

func (s *Shadowsocks) Dialer(option *dialer.ExtraOption, nextDialer netproxy.Dialer) (netproxy.Dialer, *dialer.Property, error)

func (*Shadowsocks) ExportToURL

func (s *Shadowsocks) ExportToURL() string

type Sip003

type Sip003 struct {
	Name string     `json:"name"`
	Opts Sip003Opts `json:"opts"`
}

func ParseSip003

func ParseSip003(plugin string) Sip003

func (*Sip003) String

func (s *Sip003) String() string

type Sip003Opts

type Sip003Opts struct {
	Tls  string `json:"tls"`  // for v2ray-plugin
	Obfs string `json:"obfs"` // mode for v2ray-plugin
	Host string `json:"host"`
	Path string `json:"uri"`
}

func ParseSip003Opts

func ParseSip003Opts(opts string) Sip003Opts

Jump to

Keyboard shortcuts

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