@ -3,7 +3,7 @@ package torrent
import "strings"
func LoopbackListenHost(network string) string {
if strings.Contains(network, "4") {
if strings.IndexByte(network, '4') != -1 {
return "127.0.0.1"
} else {
return "::1"