Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tun2Socket ¶
type Tun2Socket struct {
// contains filtered or unexported fields
}
func New ¶
func New(o *listener.Opts[*listener.Protocol_Tun]) (*Tun2Socket, error)
func StartTun2SocketGvisor ¶
func StartTun2SocketGvisor(device io.ReadWriteCloser, gateway, portal netip.Addr, mtu int32) (*Tun2Socket, error)
noinspection GoUnusedExportedFunction
func (*Tun2Socket) Close ¶
func (t *Tun2Socket) Close() error
func (*Tun2Socket) TCP ¶
func (t *Tun2Socket) TCP() *nat.TCP
func (*Tun2Socket) UDP ¶
func (t *Tun2Socket) UDP() *nat.UDPv2
Click to show internal directories.
Click to hide internal directories.