Commit 4113e235 authored by Jari Aalto's avatar Jari Aalto

corkscrew.c: original 2.0

Signed-off-by: 's avatarJari Aalto <jari.aalto@cante.net>
parent 2764f48e
......@@ -176,7 +176,6 @@ char *argv[];
#endif
char *host = NULL, *desthost = NULL, *destport = NULL;
char *up = NULL;
char *tmp = NULL;
int port, sent, setup, code, csock;
fd_set rfd, sfd;
struct timeval tv;
......@@ -263,11 +262,6 @@ char *argv[];
fprintf(stderr, "Proxy could not open connnection to %s: %s\n", desthost, descr);
exit(-1);
}
if (tmp = strstr(buffer,"\r\n\r\n"))
{
tmp += 4;
write(1, tmp, strlen(tmp));
}
}
}
if (FD_ISSET(csock, &sfd) && (sent == 0)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment