forked from I2P_Developers/i2p.i2p
* I2PTunnel HTTP and Connect clients:
- Shim in a new abstract superclass I2PTunnelHTTPClientBase for common code
- Add local proxy username/password authorization
- Add outproxy username/password authorization
- Filter hop-by-hop Proxy headers appropriately
This commit is contained in:
23
installer/resources/proxy/auth-header.ht
Normal file
23
installer/resources/proxy/auth-header.ht
Normal file
@@ -0,0 +1,23 @@
|
||||
HTTP/1.1 407 Proxy Authorization Required
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.5
|
||||
Proxy-Authenticate: Basic realm="I2P HTTP Proxy"
|
||||
Cache-control: no-cache
|
||||
Connection: close
|
||||
Proxy-Connection: close
|
||||
|
||||
<html><head>
|
||||
<title>Proxy Authorization Required</title>
|
||||
<!-- we cannot have links to CSS or images here, but we could put in some simple inline style -->
|
||||
</head>
|
||||
<body>
|
||||
<div class=warning id=warning>
|
||||
<h3>I2P HTTP Proxy Authorization Required</h3>
|
||||
This proxy is configured to require a username and password for access.
|
||||
Please enter your username and password, or check your
|
||||
<a href="http://127.0.0.1:7657/advancedconfig.jsp">router configuration</a>
|
||||
or
|
||||
<a href="http://127.0.0.1:7657/i2ptunnel/index.jsp">I2PTunnel configuration</a>.
|
||||
To disable authorization, remove the configuration
|
||||
<code>i2ptunnel.proxy.auth=basic</code>, then stop and restart the HTTP Proxy tunnel.
|
||||
</div>
|
||||
Reference in New Issue
Block a user