| 187 | |
| 188 | |
| 189 | void |
| 190 | LoadProxySettings(HWND hwndDlg) |
| 191 | { |
| 192 | /* Set Proxy type, address and port */ |
| 193 | if (o.proxy_type == http) |
| 194 | { |
| 195 | CheckRadioButton(hwndDlg, ID_RB_PROXY_HTTP, ID_RB_PROXY_SOCKS, ID_RB_PROXY_HTTP); |
| 196 | SetDlgItemText(hwndDlg, ID_EDT_PROXY_ADDRESS, o.proxy_http_address); |
| 197 | SetDlgItemText(hwndDlg, ID_EDT_PROXY_PORT, o.proxy_http_port); |
| 198 | } |
| 199 | else if (o.proxy_type == socks) |
| 200 | { |
| 201 | CheckRadioButton(hwndDlg, ID_RB_PROXY_HTTP, ID_RB_PROXY_SOCKS, ID_RB_PROXY_SOCKS); |
| 202 | SetDlgItemText(hwndDlg, ID_EDT_PROXY_ADDRESS, o.proxy_socks_address); |
| 203 | SetDlgItemText(hwndDlg, ID_EDT_PROXY_PORT, o.proxy_socks_port); |
| 204 | } |
| 205 | |
| 206 | /* Set Proxy Settings Source */ |
| 207 | if (o.proxy_source == config) |
| 208 | { |
| 209 | SendMessage(GetDlgItem(hwndDlg, ID_RB_PROXY_OPENVPN), BM_CLICK, 0, 0); |
| 210 | } |
| 211 | else if (o.proxy_source == windows) |
| 212 | { |
| 213 | SendMessage(GetDlgItem(hwndDlg, ID_RB_PROXY_MSIE), BM_CLICK, 0, 0); |
| 214 | } |
| 215 | else if (o.proxy_source == manual) |
| 216 | { |
| 217 | SendMessage(GetDlgItem(hwndDlg, ID_RB_PROXY_MANUAL), BM_CLICK, 0, 0); |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | |
| 222 | void |
no outgoing calls
no test coverage detected