debugging

This commit is contained in:
Igor Katson 2024-09-16 17:25:19 +01:00
parent 03391764cc
commit 406947f997
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -52,6 +52,7 @@ pub fn get_local_ip_relative_to(local_dest: IpAddr) -> anyhow::Result<IpAddr> {
for i in interfaces {
for addr in i.addr {
trace!(%local_dest, nic=i.index, ip=?addr.ip(), nm=?addr.netmask(), "dbg");
match (local_dest, addr.ip(), addr.netmask()) {
(IpAddr::V4(l), IpAddr::V4(a), Some(IpAddr::V4(m)))
if masked_v4(l, m) == masked_v4(a, m) =>