SimpleProxyResolver.new_

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

class SimpleProxyResolver
static
new_
(
string defaultProxy = null
,
string[] ignoreHosts = null
)

Parameters

defaultProxy string

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

ignoreHosts string[]

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

Return Value

Type: gio.proxy_resolver.ProxyResolver

a new #GSimpleProxyResolver