Feature: add UDP TPROXY support on Linux (#562)

This commit is contained in:
duama
2020-03-08 21:58:49 +08:00
committed by GitHub
parent b2c9cbb43e
commit f7f30d3406
7 changed files with 327 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// +build !linux
package redir
import (
"errors"
"net"
)
func dialUDP(network string, lAddr *net.UDPAddr, rAddr *net.UDPAddr) (*net.UDPConn, error) {
return nil, errors.New("UDP redir not supported on current platform")
}