From 8f27aee06e9350478b6f41228a0d1f60c7c23370 Mon Sep 17 00:00:00 2001 From: Maksim Sadym Date: Mon, 22 Dec 2025 18:27:54 +0100 Subject: [PATCH] extend proxy definition --- index.html | 60 ++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 365e67c4..4daedeaa 100644 --- a/index.html +++ b/index.html @@ -1620,10 +1620,10 @@

Proxy

httpProxy - string + string or JSON Object Defines the proxy host for HTTP traffic when the proxyType is "manual". - A host and optional port for + A proxy specifier for scheme "http". @@ -1637,19 +1637,19 @@

Proxy

sslProxy - string + string or JSON Object Defines the proxy host for encrypted TLS traffic when the proxyType is "manual". - A host and optional port for + A proxy specifier for scheme "https". socksProxy - string + string or JSON Object Defines the proxy host for a SOCKS proxy when the proxyType is "manual". - A host and optional port with an undefined scheme. + A proxy specifier with an undefined scheme. @@ -1662,6 +1662,48 @@

Proxy

+

A proxy specifier for a scheme is either a + host and optional port for a scheme, or a JSON + Object with the following properties: + + + + + + + + + + + + + + + +
Key + Value Type + Description + Valid values +
protocol + string + The protocol used to communicate with the proxy. + "http", + "ssl", + "socks4", + "socks5". +
host + string + The host used to connect to the proxy. + Any host with optional + credentials. +
port + number + The port used to connect to the proxy. + Any valid port. If protocol is + "socks4" or "socks5", this field must be + omitted. +
+

A host and optional port for a scheme is defined as being a valid host, optionally followed by a colon and a valid port. The host may @@ -1721,9 +1763,9 @@

Proxy

an error with error code invalid argument.
  • If proxy has an own property for - "socksProxy" and does not have an own property - for "socksVersion" return an error with error - code invalid argument. + "socksProxy" which is a string, and does not have an + own property for "socksVersion" return an + error with error code invalid argument.

  • Return success with data proxy.