ProxyIP
Returns the IP address of the SOCKS/HTTP proxy configured for the current connection profile.
Returns an empty string if no proxy is configured.
Возвращает IP-адрес SOCKS/HTTP-прокси, настроенного для текущего подключения (профиля).
Возвращает пустую строку, если прокси не настроен.
function ProxyIP: String;
def ProxyIP() -> str: ...
begin
if ProxyIP <> '' then
AddToSystemJournal('Proxy: ' + ProxyIP + ':' + IntToStr(ProxyPort))
else
AddToSystemJournal('No proxy configured');
end.
if ProxyIP():
AddToSystemJournal(f'Proxy: {ProxyIP()}:{ProxyPort()}')
else:
AddToSystemJournal('No proxy configured')