mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Default port is set to -1 (and not zero) when not specified in proxy specification string.
This commit is contained in:
parent
99258673ad
commit
b7b3b4bd3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue