X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=cmdline.c;h=f288ed629ee837272998ec554cb45e3bbfbc3552;hb=988e26068eead42aed72573cc1cab14cb9bfebe7;hp=92c87b3b797b61da4cd5a171699983377d10cc88;hpb=3ad0c89feca43af8c4e8ddb913bc232ad4fb5521;p=PuTTY.git diff --git a/cmdline.c b/cmdline.c index 92c87b3b..f288ed62 100644 --- a/cmdline.c +++ b/cmdline.c @@ -601,6 +601,26 @@ int cmdline_process_param(const char *p, char *value, filename_free(fn); } + if (!strcmp(p, "-proxycmd")) { + RETURN(2); + UNAVAILABLE_IN(TOOLTYPE_NONNETWORK); + SAVEABLE(0); + conf_set_int(conf, CONF_proxy_type, PROXY_CMD); + conf_set_str(conf, CONF_proxy_telnet_command, value); + } + +#ifdef _WINDOWS + /* + * Cross-tool options only available on Windows. + */ + if (!strcmp(p, "-restrict-acl") || !strcmp(p, "-restrict_acl") || + !strcmp(p, "-restrictacl")) { + RETURN(1); + restrict_process_acl(); + restricted_acl = TRUE; + } +#endif + return ret; /* unrecognised */ }