Files
tsnet-proxy/netforward/netforward.go
2023-11-29 15:41:06 +00:00

21 lines
343 B
Go

// From https://github.com/goburrow/netforward
package netforward
import (
"net"
)
// Dialer dials to a remote address.
type Dialer interface {
Dial() (net.Conn, error)
}
func IsPacketNetwork(network string) bool {
switch network {
case "udp", "udp4", "udp6", "ip", "ip4", "ip6", "unixgram":
return true
default:
return false
}
}