1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Stop proxying connections to localhost by default; should fix

`x11-proxy-crash'.

[originally from svn r2348]
This commit is contained in:
Simon Tatham
2002-12-18 12:18:54 +00:00
parent c583c6e85e
commit 8304f4e0dc
8 changed files with 71 additions and 1 deletions

View File

@ -150,6 +150,7 @@ void save_settings(char *section, int do_host, Config * cfg)
/* proxy settings */
write_setting_s(sesskey, "ProxyExcludeList", cfg->proxy_exclude_list);
write_setting_i(sesskey, "ProxyLocalhost", cfg->even_proxy_localhost);
write_setting_i(sesskey, "ProxyType", cfg->proxy_type);
write_setting_s(sesskey, "ProxyHost", cfg->proxy_host);
write_setting_i(sesskey, "ProxyPort", cfg->proxy_port);
@ -383,6 +384,7 @@ void load_settings(char *section, int do_host, Config * cfg)
/* proxy settings */
gpps(sesskey, "ProxyExcludeList", "", cfg->proxy_exclude_list,
sizeof(cfg->proxy_exclude_list));
gppi(sesskey, "ProxyLocalhost", 0, &cfg->even_proxy_localhost);
gppi(sesskey, "ProxyType", PROXY_NONE, &i); cfg->proxy_type = i;
gpps(sesskey, "ProxyHost", "proxy", cfg->proxy_host,
sizeof(cfg->proxy_host));