Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ProxyPort

Returns the port of the SOCKS/HTTP proxy configured for the current connection profile.

Returns 0 if no proxy is configured.

Возвращает порт SOCKS/HTTP-прокси, настроенного для текущего подключения (профиля).

Возвращает 0, если прокси не настроен.

Pascal

function ProxyPort: Word;

Python

def ProxyPort() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Proxy port: ' + IntToStr(ProxyPort));
end.

Python Example

AddToSystemJournal(f'Proxy port: {ProxyPort()}')

See Also

ProxyIP, UseProxy