From 7924aa945a04f2efd5967390474771f377cfbcc3 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 16 Oct 2015 23:41:11 +0100 Subject: [PATCH] Add a -fuzznet option to Unix plink. It just sets the proxy command to "cat %host", which is crude and slow but seems like a good starting point. --- unix/uxplink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unix/uxplink.c b/unix/uxplink.c index 8351a6ea..836a37a6 100644 --- a/unix/uxplink.c +++ b/unix/uxplink.c @@ -690,6 +690,10 @@ int main(int argc, char **argv) } } else if (!strcmp(p, "-shareexists")) { just_test_share_exists = TRUE; + } else if (!strcmp(p, "-fuzznet")) { + conf_set_int(conf, CONF_proxy_type, PROXY_CMD); + conf_set_str(conf, CONF_proxy_telnet_command, + "cat %host"); } else { fprintf(stderr, "plink: unknown option \"%s\"\n", p); errors = 1;