Documentation
¶
Index ¶
- Constants
- func NewSalamanderConn(conn net.PacketConn, password []byte) net.PacketConn
- type Client
- type ClientOptions
- type HopPacketConn
- func (c *HopPacketConn) Close() error
- func (c *HopPacketConn) LocalAddr() net.Addr
- func (c *HopPacketConn) ReadFrom(b []byte) (n int, addr net.Addr, err error)
- func (c *HopPacketConn) SetDeadline(t time.Time) error
- func (c *HopPacketConn) SetReadBuffer(bytes int) error
- func (c *HopPacketConn) SetReadDeadline(t time.Time) error
- func (c *HopPacketConn) SetWriteBuffer(bytes int) error
- func (c *HopPacketConn) SetWriteDeadline(t time.Time) error
- func (c *HopPacketConn) SyscallConn() (syscall.RawConn, error)
- func (c *HopPacketConn) WriteTo(b []byte, _ net.Addr) (n int, err error)
- type SalamanderPacketConn
- type ServerHandler
- type Service
- type ServiceOptions
- type VectorisedSalamanderPacketConn
Constants ¶
View Source
const ObfsTypeSalamander = "salamander"
Variables ¶
This section is empty.
Functions ¶
func NewSalamanderConn ¶
func NewSalamanderConn(conn net.PacketConn, password []byte) net.PacketConn
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options ClientOptions) (*Client, error)
func (*Client) CloseWithError ¶
func (*Client) ListenPacket ¶
type ClientOptions ¶
type HopPacketConn ¶ added in v0.4.0
type HopPacketConn struct {
// contains filtered or unexported fields
}
func NewHopPacketConn ¶ added in v0.4.0
func (*HopPacketConn) Close ¶ added in v0.4.0
func (c *HopPacketConn) Close() error
func (*HopPacketConn) LocalAddr ¶ added in v0.4.0
func (c *HopPacketConn) LocalAddr() net.Addr
func (*HopPacketConn) SetDeadline ¶ added in v0.4.0
func (c *HopPacketConn) SetDeadline(t time.Time) error
func (*HopPacketConn) SetReadBuffer ¶ added in v0.4.0
func (c *HopPacketConn) SetReadBuffer(bytes int) error
func (*HopPacketConn) SetReadDeadline ¶ added in v0.4.0
func (c *HopPacketConn) SetReadDeadline(t time.Time) error
func (*HopPacketConn) SetWriteBuffer ¶ added in v0.4.0
func (c *HopPacketConn) SetWriteBuffer(bytes int) error
func (*HopPacketConn) SetWriteDeadline ¶ added in v0.4.0
func (c *HopPacketConn) SetWriteDeadline(t time.Time) error
func (*HopPacketConn) SyscallConn ¶ added in v0.4.0
func (c *HopPacketConn) SyscallConn() (syscall.RawConn, error)
type SalamanderPacketConn ¶ added in v0.1.3
type SalamanderPacketConn struct { net.PacketConn // contains filtered or unexported fields }
func (*SalamanderPacketConn) Upstream ¶ added in v0.4.0
func (s *SalamanderPacketConn) Upstream() any
type ServerHandler ¶
type ServerHandler interface { N.TCPConnectionHandlerEx N.UDPConnectionHandlerEx }
type Service ¶
type Service[U comparable] struct { // contains filtered or unexported fields }
func NewService ¶
func NewService[U comparable](options ServiceOptions) (*Service[U], error)
func (*Service[U]) UpdateUsers ¶
type ServiceOptions ¶
type ServiceOptions struct { Context context.Context Logger logger.Logger BrutalDebug bool SendBPS uint64 ReceiveBPS uint64 IgnoreClientBandwidth bool SalamanderPassword string TLSConfig aTLS.ServerConfig UDPDisabled bool UDPTimeout time.Duration Handler ServerHandler MasqueradeHandler http.Handler }
type VectorisedSalamanderPacketConn ¶ added in v0.1.3
type VectorisedSalamanderPacketConn struct { SalamanderPacketConn // contains filtered or unexported fields }
func (*VectorisedSalamanderPacketConn) WriteVectorisedPacket ¶ added in v0.1.3
Source Files
¶
Click to show internal directories.
Click to hide internal directories.