2
0
mirror of synced 2025-02-23 14:18:13 +00:00
torrent/listen.go
2018-11-27 23:57:17 +11:00

12 lines
172 B
Go

package torrent
import "strings"
func LoopbackListenHost(network string) string {
if strings.Contains(network, "4") {
return "127.0.0.1"
} else {
return "::1"
}
}