Bug fix in ip parser. The result wasn't converted to network byte order

This commit is contained in:
cozis
2023-05-16 12:02:25 +02:00
parent b259bb74db
commit b63fb7df6c
+1 -1
View File
@@ -513,7 +513,7 @@ static bool parse_ip(const char *ip, ip_address_t *parsed_ip)
// other than the address in it.
return false;
*parsed_ip = value;
*parsed_ip = cpu_to_net_u32(value);
return true;
}