mirror of https://github.com/cbeuw/Cloak
Apply dialer control on tcp and udp alike.
This commit is contained in:
parent
d1f89eb509
commit
bbeb3e3db4
|
|
@ -160,10 +160,6 @@ func InitState(preParse RawConfig, worldState common.WorldState) (sta *State, er
|
||||||
}
|
}
|
||||||
|
|
||||||
dialerControl := func(network, address string, c syscall.RawConn) error {
|
dialerControl := func(network, address string, c syscall.RawConn) error {
|
||||||
if !strings.HasPrefix(network, "tcp") {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
ips, err := net.LookupHost(strings.Split(address, ":")[0])
|
ips, err := net.LookupHost(strings.Split(address, ":")[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue