]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - be_misc.c
Log the setup of proxied network connections.
[PuTTY.git] / be_misc.c
index 2ca4fac1f9cd4c6108f1fa873eb39611ef151729..cf8f65c4ed05b21a8c4cce2328532f03c65635df 100644 (file)
--- a/be_misc.c
+++ b/be_misc.c
@@ -23,6 +23,11 @@ void backend_socket_log(void *frontend, int type, SockAddr addr, int port,
         sk_getaddr(addr, addrbuf, lenof(addrbuf));
         msg = dupprintf("Failed to connect to %s: %s", addrbuf, error_msg);
         break;
+      case 2:
+        /* Proxy-related log messages have their own identifying
+         * prefix already, put on by our caller. */
+        msg = dupstr(error_msg);
+        break;
       default:
         msg = NULL;  /* shouldn't happen, but placate optimiser */
         break;