Versions in this module Expand all Collapse all v1 v1.18.12 Jul 2, 2024 v1.18.11 Jul 2, 2024 v1.18.10 Jul 2, 2024 v1.18.9 Jul 2, 2024 v1.18.8 Jul 2, 2024 Changes in this version + type Base struct + func NewBase(options *BaseOption) (*Base, error) + func (*Base) Close() error + func (*Base) Listen(tunnel C.Tunnel) error + func (b *Base) Additions() []inbound.Addition + func (b *Base) Address() string + func (b *Base) Config() C.InboundConfig + func (b *Base) Name() string + func (b *Base) RawAddress() string + type BaseOption struct + Listen string + NameStr string + Port int + SpecialProxy string + SpecialRules string + func (o BaseOption) Additions() []inbound.Addition + func (o BaseOption) Equal(config C.InboundConfig) bool + func (o BaseOption) Name() string + type BrutalOptions struct + Down string + Enabled bool + Up string + type HTTP struct + func NewHTTP(options *HTTPOption) (*HTTP, error) + func (h *HTTP) Address() string + func (h *HTTP) Close() error + func (h *HTTP) Config() C.InboundConfig + func (h *HTTP) Listen(tunnel C.Tunnel) error + type HTTPOption struct + func (o HTTPOption) Equal(config C.InboundConfig) bool + type Hysteria2 struct + func NewHysteria2(options *Hysteria2Option) (*Hysteria2, error) + func (t *Hysteria2) Address() string + func (t *Hysteria2) Close() error + func (t *Hysteria2) Config() C.InboundConfig + func (t *Hysteria2) Listen(tunnel C.Tunnel) error + type Hysteria2Option struct + ALPN []string + CWND int + Certificate string + Down string + IgnoreClientBandwidth bool + Masquerade string + MaxIdleTime int + MuxOption MuxOption + Obfs string + ObfsPassword string + PrivateKey string + UdpMTU int + Up string + Users map[string]string + func (o Hysteria2Option) Equal(config C.InboundConfig) bool + type Mixed struct + func NewMixed(options *MixedOption) (*Mixed, error) + func (m *Mixed) Address() string + func (m *Mixed) Close() error + func (m *Mixed) Config() C.InboundConfig + func (m *Mixed) Listen(tunnel C.Tunnel) error + type MixedOption struct + UDP bool + func (o MixedOption) Equal(config C.InboundConfig) bool + type MuxOption struct + Brutal BrutalOptions + Padding bool + func (m MuxOption) Build() sing.MuxOption + type Redir struct + func NewRedir(options *RedirOption) (*Redir, error) + func (r *Redir) Address() string + func (r *Redir) Close() error + func (r *Redir) Config() C.InboundConfig + func (r *Redir) Listen(tunnel C.Tunnel) error + type RedirOption struct + func (o RedirOption) Equal(config C.InboundConfig) bool + type ShadowSocks struct + func NewShadowSocks(options *ShadowSocksOption) (*ShadowSocks, error) + func (s *ShadowSocks) Address() string + func (s *ShadowSocks) Close() error + func (s *ShadowSocks) Config() C.InboundConfig + func (s *ShadowSocks) Listen(tunnel C.Tunnel) error + type ShadowSocksOption struct + Cipher string + MuxOption MuxOption + Password string + UDP bool + func (o ShadowSocksOption) Equal(config C.InboundConfig) bool + type Socks struct + func NewSocks(options *SocksOption) (*Socks, error) + func (s *Socks) Address() string + func (s *Socks) Close() error + func (s *Socks) Config() C.InboundConfig + func (s *Socks) Listen(tunnel C.Tunnel) error + type SocksOption struct + UDP bool + func (o SocksOption) Equal(config C.InboundConfig) bool + type TProxy struct + func NewTProxy(options *TProxyOption) (*TProxy, error) + func (t *TProxy) Address() string + func (t *TProxy) Close() error + func (t *TProxy) Config() C.InboundConfig + func (t *TProxy) Listen(tunnel C.Tunnel) error + type TProxyOption struct + UDP bool + func (o TProxyOption) Equal(config C.InboundConfig) bool + type Tuic struct + func NewTuic(options *TuicOption) (*Tuic, error) + func (t *Tuic) Address() string + func (t *Tuic) Close() error + func (t *Tuic) Config() C.InboundConfig + func (t *Tuic) Listen(tunnel C.Tunnel) error + type TuicOption struct + ALPN []string + AuthenticationTimeout int + CWND int + Certificate string + CongestionController string + MaxIdleTime int + MaxUdpRelayPacketSize int + MuxOption MuxOption + PrivateKey string + Token []string + Users map[string]string + func (o TuicOption) Equal(config C.InboundConfig) bool + type Tun struct + func NewTun(options *TunOption) (*Tun, error) + func (t *Tun) Address() string + func (t *Tun) Close() error + func (t *Tun) Config() C.InboundConfig + func (t *Tun) Listen(tunnel C.Tunnel) error + type TunOption struct + AutoDetectInterface bool + AutoRedirect bool + AutoRedirectInputMark uint32 + AutoRedirectOutputMark uint32 + AutoRoute bool + DNSHijack []string + Device string + EndpointIndependentNat bool + ExcludeInterface []string + ExcludePackage []string + ExcludeUID []uint32 + ExcludeUIDRange []string + FileDescriptor int + GSO bool + GSOMaxSize uint32 + IPRoute2RuleIndex int + IPRoute2TableIndex int + IncludeAndroidUser []int + IncludeInterface []string + IncludePackage []string + IncludeUID []uint32 + IncludeUIDRange []string + Inet4Address []string + Inet4RouteAddress []string + Inet4RouteExcludeAddress []string + Inet6Address []string + Inet6RouteAddress []string + Inet6RouteExcludeAddress []string + MTU uint32 + RouteAddress []string + RouteAddressSet []string + RouteExcludeAddress []string + RouteExcludeAddressSet []string + Stack string + StrictRoute bool + UDPTimeout int64 + func (o TunOption) Equal(config C.InboundConfig) bool + type Tunnel struct + func NewTunnel(options *TunnelOption) (*Tunnel, error) + func (t *Tunnel) Address() string + func (t *Tunnel) Close() error + func (t *Tunnel) Config() C.InboundConfig + func (t *Tunnel) Listen(tunnel C.Tunnel) error + type TunnelOption struct + Network []string + Target string + func (o TunnelOption) Equal(config C.InboundConfig) bool + type Vmess struct + func NewVmess(options *VmessOption) (*Vmess, error) + func (v *Vmess) Address() string + func (v *Vmess) Close() error + func (v *Vmess) Config() C.InboundConfig + func (v *Vmess) Listen(tunnel C.Tunnel) error + type VmessOption struct + Certificate string + MuxOption MuxOption + PrivateKey string + Users []VmessUser + WsPath string + func (o VmessOption) Equal(config C.InboundConfig) bool + type VmessUser struct + AlterID int + UUID string + Username string