|
|
9f270db |
diff -urNp corkscrew-2.0.orig/corkscrew.c corkscrew-2.0/corkscrew.c
|
|
|
9f270db |
--- corkscrew-2.0.orig/corkscrew.c 2007-05-19 09:56:05.000000000 +0530
|
|
|
9f270db |
+++ corkscrew-2.0/corkscrew.c 2007-05-19 10:07:00.000000000 +0530
|
|
|
9f270db |
@@ -176,6 +176,7 @@ char *argv[];
|
|
|
9f270db |
#endif
|
|
|
9f270db |
char *host = NULL, *desthost = NULL, *destport = NULL;
|
|
|
9f270db |
char *up = NULL;
|
|
|
9f270db |
+ char *tmp = NULL;
|
|
|
9f270db |
int port, sent, setup, code, csock;
|
|
|
9f270db |
fd_set rfd, sfd;
|
|
|
9f270db |
struct timeval tv;
|
|
|
9f270db |
@@ -262,6 +263,11 @@ char *argv[];
|
|
|
9f270db |
fprintf(stderr, "Proxy could not open connnection to %s: %s\n", desthost, descr);
|
|
|
9f270db |
exit(-1);
|
|
|
9f270db |
}
|
|
|
9f270db |
+ if (tmp = strstr(buffer,"\r\n\r\n"))
|
|
|
9f270db |
+ {
|
|
|
9f270db |
+ tmp += 4;
|
|
|
9f270db |
+ write(1, tmp, strlen(tmp));
|
|
|
9f270db |
+ }
|
|
|
9f270db |
}
|
|
|
9f270db |
}
|
|
|
9f270db |
if (FD_ISSET(csock, &sfd) && (sent == 0)) {
|
|
|
9f270db |
diff -urNp corkscrew-2.0.orig/README corkscrew-2.0/README
|
|
|
9f270db |
--- corkscrew-2.0.orig/README 2007-05-19 09:56:05.000000000 +0530
|
|
|
9f270db |
+++ corkscrew-2.0/README 2007-05-19 09:56:48.000000000 +0530
|
|
|
9f270db |
@@ -47,7 +47,7 @@ Setting up Corkscrew with SSH/OpenSSH is
|
|
|
9f270db |
the following line to your ~/.ssh/config file will usually do
|
|
|
9f270db |
the trick (replace proxy.example.com and 8080 with correct values):
|
|
|
9f270db |
|
|
|
9f270db |
-ProxyCommand /usr/local/bin/corkscrew proxy.example.com 8080 %h %p
|
|
|
9f270db |
+ProxyCommand /usr/bin/corkscrew proxy.example.com 8080 %h %p
|
|
|
9f270db |
|
|
|
9f270db |
NOTE: Command line syntax has changed since version 1.5. Please
|
|
|
9f270db |
notice that the proxy port is NOT optional anymore and is required
|
|
|
9f270db |
@@ -70,7 +70,7 @@ chmod 600 myauth
|
|
|
9f270db |
Now you will have to change the ProxyCommand line in your ~/.ssh/config
|
|
|
9f270db |
file. Here's an example :
|
|
|
9f270db |
|
|
|
9f270db |
-ProxyCommand /usr/local/bin/corkscrew proxy.work.com 80 %h %p ~/.ssh/myauth
|
|
|
9f270db |
+ProxyCommand /usr/bin/corkscrew proxy.work.com 80 %h %p ~/.ssh/myauth
|
|
|
9f270db |
|
|
|
9f270db |
The proxy authentication feature is very new and has not been tested
|
|
|
9f270db |
extensively so your mileage may vary. If you encounter any problems
|