fs/torrentfs_test.go | 5 ++++- diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index ea7daec74698788144e58a7e82afa4927fdc19c8..b310b508d726ffe971391cdb4672994c96d3e9b2 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -222,7 +222,10 @@ if err != nil { panic(err) } return torrent.Peer{ - IP: net.IPv6loopback, + IP: func() net.IP { + ret, _ := net.ResolveIPAddr("ip", "localhost") + return ret.IP + }(), Port: int(portInt64), } }()})