1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-09 03:37:37 -05:00
v2fly/transport/internet/sockopt.go

20 lines
281 B
Go
Raw Normal View History

2018-09-10 07:23:27 -04:00
package internet
2018-09-11 04:03:26 -04:00
func isTCPSocket(network string) bool {
switch network {
case "tcp", "tcp4", "tcp6":
return true
default:
return false
}
}
2018-09-15 15:35:32 -04:00
func isUDPSocket(network string) bool {
switch network {
case "udp", "udp4", "udp6":
return true
default:
return false
}
}