ODAC

TProxyOptions.UseSystemSettings Property

Specifies whether to use the system proxy settings. On Windows, the value of these settings is read from the Registry; on *NIX systems, it's read from environment variables set using the system configuration files.

The default value is False.

Class

TProxyOptions

Syntax

property UseSystemSettings: boolean default False;

Remarks

When the UseSystemSettings option is enabled, the proxy server is selected according to the following algorithm:

1. If Use the same proxy server for all protocols is selected, the specified proxy server is used regardless of the protocol used.

2. If Use the same proxy server for all protocols isn't selected:

In both cases, if the selected proxy server for your protocol isn't specified in the settings, the connection is established directly, without using a proxy server. On *NIX systems, if the all_proxy environment variable is set, its value is used.

Thus, to force the use of a SOCKS server, you need to manually set the SocksVersion property to svSocks4 or svSocks5, depending on the version of your server. Also, if the proxy server requires authorization, you need to manually fill in the Username and Password properties because the system settings for proxy servers only store the Host and Port values.

See Also

© 1997-2025 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback