Gio.SocketClient.prototype.set_proxy_resolver

function set_proxy_resolver(proxy_resolver: Gio.ProxyResolver): void {
    // Gjs wrapper for g_socket_client_set_proxy_resolver()
}
  

Overrides the Gio.ProxyResolver used by client. You can call this if you want to use specific proxies, rather than using the system default proxy settings.

Note that whether or not the proxy resolver is actually used depends on the setting of Gio.SocketClient.enable_proxy, which is not changed by this function (but which is true by default)

Since 2.36

proxy_resolver

a Gio.ProxyResolver, or null for the default.