With -vv, client shows a message when opening a daemon connection via
authorMartin Pool <mbp@samba.org>
Sat, 23 Feb 2002 01:00:33 +0000 (01:00 +0000)
committerMartin Pool <mbp@samba.org>
Sat, 23 Feb 2002 01:00:33 +0000 (01:00 +0000)
an HTTP proxy.  This parallels the recent addition of a log message
for opening ssh connections.

socket.c

index d69e4cf380d135e2a8ec61901f3859ceda912b5e..ccc79cfec7b5b1d821e42ed378f37df5463dc0e0 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -182,6 +182,10 @@ int open_socket_out(char *host, int port, const char *bind_address,
                *cp++ = '\0';
                strcpy(portbuf, cp);
                h = buffer;
                *cp++ = '\0';
                strcpy(portbuf, cp);
                h = buffer;
+               if (verbose >= 2) {
+                       rprintf(FINFO, "connection via http proxy %s port %s\n",
+                               h, portbuf);
+               }
        } else {
                snprintf(portbuf, sizeof(portbuf), "%d", port);
                h = host;
        } else {
                snprintf(portbuf, sizeof(portbuf), "%d", port);
                h = host;