channledb/addr: remove silent encoding failure for unknown types
This commit is contained in:
parent
c6c442f6b6
commit
4cb7953f66
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user