Skip to content

Commit 474c7c6

Browse files
authored
fix matching ip address with gateway (#178)
1 parent 05ea7d3 commit 474c7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mappings/farms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function checkIPs(ctx: Ctx, ipv4_a: string, ipv4_b: string): boolean {
9292
const ip_b = ipaddr.parse(ipv4_b);
9393

9494
// check if both IP addresses are the same
95-
if (ip_a[0] == ip_b) {
95+
if (ip_a[0].toString() == ip_b.toString()) {
9696
ctx.log.warn(`The IP addresses are the same. Public IP: ${ipv4_a}, Gateway: ${ipv4_b}`);
9797
return false;
9898
}

0 commit comments

Comments
 (0)