Fix nix builds: go dependencies are awful

This commit is contained in:
bluepython508
2023-11-29 15:41:06 +00:00
parent 0926de2bd8
commit 259f002a99
11 changed files with 355 additions and 124 deletions

20
netforward/netforward.go Normal file
View File

@@ -0,0 +1,20 @@
// 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
}
}