Commit 1f340e3b8fef14c34454fd3f8777a9e41bdca876
1 parent
87a5cf4c
Exists in
master
and in
3 other branches
Teste em windows
Showing
1 changed file
with
4 additions
and
6 deletions
Show diff stats
proxy.c
@@ -575,10 +575,8 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) | @@ -575,10 +575,8 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) | ||
575 | s += strlen(host) + 1; | 575 | s += strlen(host) + 1; |
576 | 576 | ||
577 | #if defined(X3270_TRACE) /*[*/ | 577 | #if defined(X3270_TRACE) /*[*/ |
578 | - trace_dsn("SOCKS4 Proxy: version 4 connect port %u " | ||
579 | - "address 0.0.0.1 user '%s' host '%s'\n", | ||
580 | - port, user, host); | ||
581 | - trace_netdata('>', (unsigned char *)buf, s - buf); | 578 | + trace_dsn("SOCKS4 Proxy: version 4 connect port %u address 0.0.0.1 user '%s' host '%s'\n",port, user, host); |
579 | + trace_netdata(&h3270,'>', (unsigned char *)buf, s - buf); | ||
582 | #endif /*]*/ | 580 | #endif /*]*/ |
583 | 581 | ||
584 | if (send(fd, buf, s - buf, 0) < 0) { | 582 | if (send(fd, buf, s - buf, 0) < 0) { |
@@ -604,7 +602,7 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) | @@ -604,7 +602,7 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) | ||
604 | trace_dsn("SOCKS4 Proxy: xmit version 4 connect port %u " | 602 | trace_dsn("SOCKS4 Proxy: xmit version 4 connect port %u " |
605 | "address %s user '%s'\n", | 603 | "address %s user '%s'\n", |
606 | port, inet_ntoa(ipaddr), user); | 604 | port, inet_ntoa(ipaddr), user); |
607 | - trace_netdata('>', (unsigned char *)buf, s - buf); | 605 | + trace_netdata(&h3270,'>', (unsigned char *)buf, s - buf); |
608 | #endif /*]*/ | 606 | #endif /*]*/ |
609 | 607 | ||
610 | if (send(fd, buf, s - buf, 0) < 0) { | 608 | if (send(fd, buf, s - buf, 0) < 0) { |
@@ -644,7 +642,7 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) | @@ -644,7 +642,7 @@ static int proxy_socks4(int fd, char *host, unsigned short port, int force_a) | ||
644 | } | 642 | } |
645 | 643 | ||
646 | #if defined(X3270_TRACE) /*[*/ | 644 | #if defined(X3270_TRACE) /*[*/ |
647 | - trace_netdata('<', (unsigned char *)rbuf, nread); | 645 | + trace_netdata(&h3270,'<', (unsigned char *)rbuf, nread); |
648 | if (use_4a) { | 646 | if (use_4a) { |
649 | struct in_addr a; | 647 | struct in_addr a; |
650 | 648 |