2021-08-18 05:26:23 +00:00
|
|
|
//go:build !linux
|
2020-03-08 13:58:49 +00:00
|
|
|
|
2021-06-13 09:23:10 +00:00
|
|
|
package tproxy
|
2020-03-08 13:58:49 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"net"
|
2022-06-12 11:37:27 +00:00
|
|
|
"net/netip"
|
2020-03-08 13:58:49 +00:00
|
|
|
)
|
|
|
|
|
2022-06-12 11:37:27 +00:00
|
|
|
func getOrigDst(oob []byte) (netip.AddrPort, error) {
|
|
|
|
return netip.AddrPort{}, errors.New("UDP redir not supported on current platform")
|
2021-06-13 09:23:10 +00:00
|
|
|
}
|
|
|
|
|
2022-06-12 11:37:27 +00:00
|
|
|
func dialUDP(network string, lAddr, rAddr netip.AddrPort) (*net.UDPConn, error) {
|
2020-03-08 13:58:49 +00:00
|
|
|
return nil, errors.New("UDP redir not supported on current platform")
|
|
|
|
}
|