[misc] Fixup missing "== 0" in commit c30f44f

This commit is contained in:
ejurgensen 2024-06-17 23:35:03 +02:00
parent 82a0e77eb6
commit d6d46de399
1 changed files with 1 additions and 1 deletions

View File

@ -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))