package
0.0.0-20230917034616-0c6325a61e88
Repository: https://github.com/seud0nym/tproxy-go.git
Documentation: pkg.go.dev
# README
The tproxy package is based on original work that can be found in: https://github.com/LiamHaworth/go-tproxy
It has been adapted to use a single target rather than passing through to the original destination, and to add IPv6 support.
# Functions
DialUDP connects to the remote address raddr on the network, which must be "udp", "udp4", or "udp6".
IP6ZoneToInt converts an IP6 Zone net string to a unix int returns 0 if zone is "".
ListenTCP will construct a new TCP listener socket with the Linux IP_TRANSPARENT option et on the underlying socket.
ListenUDP will construct a new UDP listener socket with the Linux IP_TRANSPARENT option set on the underlying socket.
ReadFromUDP reads a UDP packet from c, copying the payload into b.