From d6d46de3995a13e78a1a099b9f3cfaf14f9a172d Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Mon, 17 Jun 2024 23:35:03 +0200 Subject: [PATCH] [misc] Fixup missing "== 0" in commit c30f44f --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index 921d990d..dec0113b 100644 --- a/src/misc.c +++ b/src/misc.c @@ -248,7 +248,7 @@ net_peer_address_is_trusted(union net_sockaddr *naddr) if (strcmp(network, "lan") == 0 && net_address_is_local(naddr)) return true; - if (strcmp(network, "localhost")) + if (strcmp(network, "localhost") == 0) network = (naddr->sa.sa_family == AF_INET6) ? "::1" : "127.0.0.1"; if (net_address_has_prefix(naddr, network))