mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Strips off tabs and trailing spaces
This commit is contained in:
parent
71eec581a3
commit
4b4d67d4fb
2 changed files with 4 additions and 4 deletions
|
|
@ -1049,7 +1049,7 @@ int ncat_connect(void)
|
|||
/* A proxy connection. */
|
||||
static int connect_socket;
|
||||
|
||||
if (strcmp(o.proxytype, "http") == 0) {
|
||||
if (strcmp(o.proxytype, "http") == 0) {
|
||||
connect_socket = do_proxy_http();
|
||||
} else if (strcmp(o.proxytype, "socks4") == 0) {
|
||||
connect_socket = do_proxy_socks4();
|
||||
|
|
@ -1310,7 +1310,7 @@ static void read_socket_handler(nsock_pool nsp, nsock_event evt, void *data)
|
|||
|
||||
if (status == NSE_STATUS_EOF) {
|
||||
#ifdef WIN32
|
||||
_close(STDOUT_FILENO);
|
||||
_close(STDOUT_FILENO);
|
||||
#else
|
||||
Close(STDOUT_FILENO);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ int main(int argc, char *argv[])
|
|||
struct host_list_node *allow_host_list = NULL;
|
||||
struct host_list_node *deny_host_list = NULL;
|
||||
|
||||
unsigned short proxyport;
|
||||
unsigned short proxyport;
|
||||
int srcport = -1;
|
||||
char *source = NULL;
|
||||
|
||||
|
|
@ -732,7 +732,7 @@ int main(int argc, char *argv[])
|
|||
proxyport = DEFAULT_SOCKS4_PORT;
|
||||
else if (!strcmp(o.proxytype, "socks5") || !strcmp(o.proxytype, "5"))
|
||||
proxyport = DEFAULT_SOCKS5_PORT;
|
||||
else
|
||||
else
|
||||
bye("Invalid proxy type \"%s\".", o.proxytype);
|
||||
|
||||
/* Parse HTTP/SOCKS proxy address and store it in targetss.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue