From f23093fd69e5dc9435b6c114fe79be40b8125133 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Sat, 25 Jul 2020 12:00:45 +0200 Subject: [PATCH] cosmetic --- examples/rendezvous_server/rendezvous_server.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rendezvous_server/rendezvous_server.nim b/examples/rendezvous_server/rendezvous_server.nim index d4fa1ab..175f676 100644 --- a/examples/rendezvous_server/rendezvous_server.nim +++ b/examples/rendezvous_server/rendezvous_server.nim @@ -42,7 +42,7 @@ proc isPrivateIp(ip: IpAddress): bool = proc isInNetwork(ip: IpAddress, iface: NetworkInterface): bool = let ipScalar = htonl(cast[uint32](ip.address_v4)) let ifaceIpScalar = htonl(cast[uint32](iface.ipAddress.address_v4)) - let netmaskScalar = htonl(cast[uint32](iface.netmask.address_v4)) + let netmaskScalar = htonl(cast[uint32](iface.netMask.address_v4)) (ipScalar and netmaskScalar) == (ifaceIpScalar and netmaskScalar) proc probePublicIp(): Future[IpAddress] {.async.} =