diff --git a/unix/config-unix.c b/unix/config-unix.c index 349a643f..d832a18b 100644 --- a/unix/config-unix.c +++ b/unix/config-unix.c @@ -39,7 +39,7 @@ void unix_setup_config_box(struct controlbox *b, bool midsession, int protocol) s = ctrl_getset(b, "Connection/Proxy", "basics", NULL); for (i = 0; i < s->ncontrols; i++) { c = s->ctrls[i]; - if (c->generic.type == CTRL_RADIO && + if (c->generic.type == CTRL_LISTBOX && c->generic.handler == proxy_type_handler) { c->generic.context.i |= PROXY_UI_FLAG_LOCAL; break; diff --git a/windows/config.c b/windows/config.c index bcac905a..17448260 100644 --- a/windows/config.c +++ b/windows/config.c @@ -362,7 +362,7 @@ void win_setup_config_box(struct controlbox *b, HWND *hwndp, bool has_help, s = ctrl_getset(b, "Connection/Proxy", "basics", NULL); for (i = 0; i < s->ncontrols; i++) { c = s->ctrls[i]; - if (c->generic.type == CTRL_RADIO && + if (c->generic.type == CTRL_LISTBOX && c->generic.handler == proxy_type_handler) { c->generic.context.i |= PROXY_UI_FLAG_LOCAL; break;