channledb/addr: remove silent encoding failure for unknown types
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -192,7 +192,7 @@ func serializeAddr(w io.Writer, address net.Addr) error {
|
||||
return encodeTCPAddr(w, addr)
|
||||
case *tor.OnionAddr:
|
||||
return encodeOnionAddr(w, addr)
|
||||
default:
|
||||
return ErrUnknownAddressType
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user