mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-11 08:15:27 -04:00
scenario test for domain socket
This commit is contained in:
@@ -18,6 +18,9 @@ func DestinationFromAddr(addr net.Addr) Destination {
|
||||
return TCPDestination(IPAddress(addr.IP), Port(addr.Port))
|
||||
case *net.UDPAddr:
|
||||
return UDPDestination(IPAddress(addr.IP), Port(addr.Port))
|
||||
case *net.UnixAddr:
|
||||
// TODO: deal with Unix domain socket
|
||||
return TCPDestination(LocalHostIP, Port(9))
|
||||
default:
|
||||
panic("Net: Unknown address type.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user