X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/d87d258a8f5d8fc9c43e73cc59ff4258b3755485..4a693cfc5c3ee0e639bbee0215345e921715ab04:/unix/uxproxy.c diff --git a/unix/uxproxy.c b/unix/uxproxy.c index 792bbdc2..b441b802 100644 --- a/unix/uxproxy.c +++ b/unix/uxproxy.c @@ -224,7 +224,7 @@ static int localproxy_select_result(int fd, int event) Socket platform_new_connection(SockAddr addr, char *hostname, int port, int privport, int oobinline, int nodelay, int keepalive, - Plug plug, const Config *cfg) + Plug plug, Conf *conf) { char *cmd; @@ -243,10 +243,10 @@ Socket platform_new_connection(SockAddr addr, char *hostname, Local_Proxy_Socket ret; int to_cmd_pipe[2], from_cmd_pipe[2], pid; - if (cfg->proxy_type != PROXY_CMD) + if (conf_get_int(conf, CONF_proxy_type) != PROXY_CMD) return NULL; - cmd = format_telnet_command(addr, port, cfg); + cmd = format_telnet_command(addr, port, conf); ret = snew(struct Socket_localproxy_tag); ret->fn = &socket_fn_table;