mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +00:00
Default port is set to -1 (and not zero) when not specified in proxy specification string.
This commit is contained in:
@@ -91,7 +91,7 @@ int proxy_http_node_new(struct proxy_node **node, const struct uri *uri) {
|
||||
|
||||
proxy->sslen = sizeof(struct sockaddr_in);
|
||||
|
||||
if (uri->port == 0)
|
||||
if (uri->port == -1)
|
||||
proxy->port = DEFAULT_PROXY_PORT_HTTP;
|
||||
else
|
||||
proxy->port = (unsigned short)uri->port;
|
||||
|
||||
Reference in New Issue
Block a user