Skip to content

Commit 8b7b4d2

Browse files
restrict proxy schema
1 parent 2cd56a2 commit 8b7b4d2

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

index.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,22 +1653,34 @@ <h3>Proxy</h3>
16531653
<tr>
16541654
<td><code>socksVersion</code>
16551655
<td>number
1656-
<td>Defines the <a>SOCKS proxy</a> version
1656+
<td>(deprecated) defines the <a>SOCKS proxy</a> version
16571657
when the <a><code>proxyType</code></a> is "<code>manual</code>".
16581658
<td>Any <a>integer</a> between 0 and 255 inclusive.
16591659
</tr>
16601660

1661+
<tr>
1662+
<td><code>other</code>
1663+
<td>string
1664+
<td>(deprecated) defines the proxy for traffic which is not HTTP nor TLS
1665+
when the <a><code>proxyType</code></a> is "<code>manual</code>".
1666+
<td>A <a>proxy url</a>.
1667+
</tr>
1668+
16611669
</table>
16621670

16631671
<p>A <dfn>proxy url</dfn> is a valid <a>host</a>, optionally followed by a colon
1664-
and a valid <a>port</a>, and optionally prefixed by a <var>scheme</var> and
1665-
"<code>://</code>" string. The <a>host</a> may
1672+
and a valid <a>port</a>, and optionally prefixed by a <a>proxy schema</a>
1673+
<var>scheme</var> and "<code>://</code>" string. The <a>host</a> may
16661674
<a data-lt="includes credentials">include credentials</a>. If the
16671675
<var>scheme</var> is omitted, the <var>scheme</var> is implied to be
16681676
"<code>http</code>". If the port is omitted and <var>scheme</var> has a
16691677
<a>default port</a>, this is the implied port. Otherwise, the port is left
16701678
undefined.
16711679

1680+
<p>A <dfn>proxy schema</dfn> is defined as being one of the following strings:
1681+
"<code>http</code>", "<code>https</code>", "<code>socks4</code>",
1682+
"<code>socks5</code>".
1683+
16721684
<p>A <a><code>proxyType</code></a> of "<code>direct</code>" indicates
16731685
that the browser should not use a proxy at all.
16741686

0 commit comments

Comments
 (0)