mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 02:02:10 +02:00
lncfg+config: use address string in IsLoopback
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user