Skip to content

Commit

Permalink
minor: Fix sync resolve bug in Mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Jan 4, 2025
1 parent 4e98b6a commit 0737fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,7 @@ MG_INTERNAL int mg_parse_address(const char *str, union socket_address *sa,
* try to resolve it using `gethostbyname` and do not try
* to resolve it via DNS server if gethostbyname has failed too
*/
if (mg_ncasecmp(host, "localhost", 9) != 0) {
if (mg_ncasecmp(host, "localhost", 9) == 0) {
return 0;
}

Expand Down

0 comments on commit 0737fd7

Please sign in to comment.