1
0
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:
Darien Raymond
2018-04-09 20:45:23 +02:00
parent 38de82a5d3
commit b7fc1f0bd6
5 changed files with 145 additions and 1 deletions

View File

@@ -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.")
}