lncfg+config: use address string in IsLoopback

This commit is contained in:
Wilmer Paulino committed 2018-06-27 19:03:30 -07:00
1 parent 17399994e4
commit bbeb8b2ddd
3 files changed
+5 -8

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ func TestAddresses(t *testing.T) {
netAddr.Network(), netAddr.String(),
)
}
isAddrLoopback := IsLoopback(normalized[0])
isAddrLoopback := IsLoopback(normalized[0].String())
if testVector.isLoopback != isAddrLoopback {
t.Fatalf("#%v: mismatched loopback detection: expected "+
"%v, got %v for addr %s",