Gio.SocketClient.prototype.set_enable_proxy

function set_enable_proxy(enable: Boolean): void {
    // Gjs wrapper for g_socket_client_set_enable_proxy()
}
  

Sets whether or not client attempts to make connections via a proxy server. When enabled (the default), Gio.SocketClient will use a Gio.ProxyResolver to determine if a proxy protocol such as SOCKS is needed, and automatically do the necessary proxy negotiation.

See also Gio.SocketClient.prototype.set_proxy_resolver.

Since 2.26

enable

whether to enable proxies