new

fun new(defaultProxy: String? = null, ignoreHosts: List<String>? = null): ProxyResolver

Creates a new #GSimpleProxyResolver. See #GSimpleProxyResolver:default-proxy and #GSimpleProxyResolver:ignore-hosts for more details on how the arguments are interpreted.

Return

a new #GSimpleProxyResolver

Since

2.36

Parameters

defaultProxy

the default proxy to use, eg "socks://192.168.1.1"

ignoreHosts

an optional list of hosts/IP addresses to not use a proxy for.