diff --git a/http.c b/http.c index 19d4162..b9f89ba 100644 --- a/http.c +++ b/http.c @@ -108,20 +108,21 @@ void print_line_prefix(char *buf, char *prefix) } /* - * Append an undefined number of strings together + * Append an variable number of strings together */ -void strzcat(char *strz, ...) +size_t strzcat(char *strz, ...) { va_list ap; - va_start(ap, strz); char *z; int i; - for(i=0; i %s -> %s\n", + args_info.proxy_arg, + args_info.remproxy_arg, + args_info.dest_arg ); + } else { + message( "Via %s -> %s\n", + args_info.proxy_arg, + args_info.dest_arg ); + } + } else { + message( "Connected to %s (local proxy)\n", args_info.proxy_arg ); + } + } { /* Increase interactivity of tunnel, patch by Ingo Molnar */ int flag = 1; @@ -146,16 +157,6 @@ int tunnel_connect() { void closeall() { // message( "In closeall\n"); - if( args_info.verbose_flag ) - { - message( "Tunnel closed\n" ); - } - - if( !args_info.quiet_flag ) - { - message( "Goodbye" ); - } - #ifndef CYGWIN closelog(); #endif @@ -173,6 +174,12 @@ void closeall() { stream_close(std); std = NULL; } + + if( args_info.verbose_flag ) + { + message( "Tunnel closed.\n" ); + } + } /*