Documentation ¶
Index ¶
- func IsDomainName(s string) bool
- func NewClient(conf *protocol.Protocol_Wireguard) point.WrapProxy
- type Net
- func (net *Net) DialContextTCP(ctx context.Context, addr *net.TCPAddr) (*gonet.TCPConn, error)
- func (net *Net) DialContextTCPAddrPort(ctx context.Context, addr netip.AddrPort) (*gonet.TCPConn, error)
- func (net *Net) DialTCP(addr *net.TCPAddr) (*gonet.TCPConn, error)
- func (net *Net) DialTCPAddrPort(addr netip.AddrPort) (*gonet.TCPConn, error)
- func (net *Net) DialUDP(laddr, raddr *net.UDPAddr) (*gonet.UDPConn, error)
- func (net *Net) DialUDPAddrPort(laddr, raddr netip.AddrPort) (*gonet.UDPConn, error)
- func (n *Net) HasV4() bool
- func (n *Net) HasV6() bool
- func (net *Net) ListenTCP(addr *net.TCPAddr) (*gonet.TCPListener, error)
- func (net *Net) ListenTCPAddrPort(addr netip.AddrPort) (*gonet.TCPListener, error)
- func (net *Net) ListenUDP(laddr *net.UDPAddr) (*gonet.UDPConn, error)
- func (net *Net) ListenUDPAddrPort(laddr netip.AddrPort) (*gonet.UDPConn, error)
- type Wireguard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDomainName ¶
Types ¶
type Net ¶
type Net netTun
func CreateNetTUN ¶
func (*Net) DialContextTCP ¶
func (*Net) DialContextTCPAddrPort ¶
func (*Net) DialTCPAddrPort ¶
func (*Net) DialUDPAddrPort ¶
func (*Net) ListenTCPAddrPort ¶
type Wireguard ¶
type Wireguard struct { netapi.EmptyDispatch // contains filtered or unexported fields }
func (*Wireguard) PacketConn ¶
Click to show internal directories.
Click to hide internal directories.