Skip to content

Commit

Permalink
[misc] Fixup missing "== 0" in commit c30f44f
Browse files Browse the repository at this point in the history
  • Loading branch information
ejurgensen committed Jun 17, 2024
1 parent 82a0e77 commit d6d46de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d6d46de

Please sign in to comment.