mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-13 00:57:33 -05:00
Switch some Conf settings over to being bool.
I think this is the full set of things that ought logically to be boolean. One annoyance is that quite a few radio-button controls in config.c address Conf fields that are now bool rather than int, which means that the shared handler function can't just access them all with conf_{get,set}_int. Rather than back out the rigorous separation of int and bool in conf.c itself, I've just added a similar alternative handler function for the bool-typed ones.
This commit is contained in:
2
proxy.c
2
proxy.c
@ -283,7 +283,7 @@ int proxy_for_destination (SockAddr *addr, const char *hostname,
|
||||
* Check the host name and IP against the hard-coded
|
||||
* representations of `localhost'.
|
||||
*/
|
||||
if (!conf_get_int(conf, CONF_even_proxy_localhost) &&
|
||||
if (!conf_get_bool(conf, CONF_even_proxy_localhost) &&
|
||||
(sk_hostname_is_local(hostname) ||
|
||||
(addr && sk_address_is_local(addr))))
|
||||
return 0; /* do not proxy */
|
||||
|
Reference in New Issue
Block a user