]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add a -fuzznet option to Unix plink.
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 16 Oct 2015 22:41:11 +0000 (23:41 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 28 Oct 2015 22:08:57 +0000 (22:08 +0000)
It just sets the proxy command to "cat %host", which is crude and slow
but seems like a good starting point.

unix/uxplink.c

index 8351a6ea7280528acbe8660a0db18e66237823c0..836a37a6e5cccd96cbd625dd5b2e9425f7ec9d77 100644 (file)
@@ -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;