version 1.324, 2020/01/09 03:28:38 |
version 1.325, 2020/01/11 16:23:10 |
|
|
/* Expand a proxy command */ |
/* Expand a proxy command */ |
static char * |
static char * |
expand_proxy_command(const char *proxy_command, const char *user, |
expand_proxy_command(const char *proxy_command, const char *user, |
const char *host_arg, const char *host, int port) |
const char *host, const char *host_arg, int port) |
{ |
{ |
char *tmp, *ret, strport[NI_MAXSERV]; |
char *tmp, *ret, strport[NI_MAXSERV]; |
|
|
|
|
"proxy dialer: %.100s", strerror(errno)); |
"proxy dialer: %.100s", strerror(errno)); |
|
|
command_string = expand_proxy_command(proxy_command, options.user, |
command_string = expand_proxy_command(proxy_command, options.user, |
host_arg, host, port); |
host, host_arg, port); |
debug("Executing proxy dialer command: %.500s", command_string); |
debug("Executing proxy dialer command: %.500s", command_string); |
|
|
/* Fork and execute the proxy command. */ |
/* Fork and execute the proxy command. */ |
|
|
strerror(errno)); |
strerror(errno)); |
|
|
command_string = expand_proxy_command(proxy_command, options.user, |
command_string = expand_proxy_command(proxy_command, options.user, |
host_arg, host, port); |
host, host_arg, port); |
debug("Executing proxy command: %.500s", command_string); |
debug("Executing proxy command: %.500s", command_string); |
|
|
/* Fork and execute the proxy command. */ |
/* Fork and execute the proxy command. */ |