Skip to content

Commit dbaf326

Browse files
Sergey Frolovsergeyfrolov
authored andcommitted
experimental_probe_resist -> probe_resistance
1 parent f2019d5 commit dbaf326

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ forwardproxy {
1414
ports 80 443
1515
hide_ip
1616
serve_pac proxy.pac
17-
experimental_probe_resist secretlink-7qS4+3dqm.localhost
17+
probe_resistance secretlink-7qS4+3dqm.localhost
1818
response_timeout 30
1919
dial_timeout 30
2020
}
@@ -33,7 +33,7 @@ Default: no hiding, "_Forwarded: for="useraddress"_" will be sent out.
3333
Generate in memory and serve [Proxy Auto-Config](https://en.wikipedia.org/wiki/Proxy_auto-config) file on given path.
3434
If no path is provided, PAC file will be served at /proxy.pac
3535
Default: no PAC file generated by Caddy (you still can manually create and serve proxy.pac like a regular file)
36-
* experimental_probe_resist secretlink.tld(optional)
36+
* probe_resistance secretlink.tld(optional)
3737
EXPERIMENTAL, HERE BE DRAGONS.
3838
Attempts to hide the fact that the site is a forwardproxy.
3939
Proxy will no longer respond with _"407 Proxy Authentication Required"_ if credentials are incorrect or absent,

common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TestMain(m *testing.M) {
122122
caddyForwardProxyProbeResist = caddyTestServer{addr: "127.0.0.1:8888", root: "./test/forwardproxy",
123123
directives: []string{"tls self_signed"}, HTTPRedirectPort: "8880",
124124
proxyEnabled: true, proxyDirectives: []string{"basicauth test pass",
125-
"experimental_probe_resist test.localhost",
125+
"probe_resistance test.localhost",
126126
"serve_pac superhiddenfile.pac"}}
127127
caddyForwardProxyProbeResist.StartTestServer()
128128

docker-build/gen_caddyfile_and_start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generate_caddyfile() {
1515
echo " basicauth ${PROXY_USERNAME} ${PROXY_PASSWORD}" >> ${CADDYFILE}
1616
fi
1717
if [[ "${PROBE_RESISTANT}" = true ]]; then
18-
echo " experimental_probe_resist ${SECRET_LINK}" >> ${CADDYFILE}
18+
echo " probe_resistance ${SECRET_LINK}" >> ${CADDYFILE}
1919
fi
2020
echo " }" >> ${CADDYFILE}
2121

setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func setup(c *caddy.Controller) error {
8787
return c.ArgErr()
8888
}
8989
fp.hideIP = true
90-
case "experimental_probe_resist":
90+
case "probe_resistance":
9191
if len(args) > 1 {
9292
return c.ArgErr()
9393
}

setup_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ func TestSetup(t *testing.T) {
8484
testParsing([]string{"hide_ip 0"}, false)
8585
testParsing([]string{"hide_ip 0 1"}, false)
8686

87-
testParsing([]string{"experimental_probe_resist"}, false)
88-
testParsing([]string{"experimental_probe_resist local.host"}, false)
89-
testParsing([]string{"experimental_probe_resist local.host very.local.host"}, false)
90-
testParsing([]string{"experimental_probe_resist", "basicauth john doe"}, true)
91-
testParsing([]string{"experimental_probe_resist local.host", "basicauth john doe"}, true)
92-
testParsing([]string{"experimental_probe_resist local.host very.local.host", "basicauth john doe"}, false)
87+
testParsing([]string{"probe_resistance"}, false)
88+
testParsing([]string{"probe_resistance local.host"}, false)
89+
testParsing([]string{"probe_resistance local.host very.local.host"}, false)
90+
testParsing([]string{"probe_resistance", "basicauth john doe"}, true)
91+
testParsing([]string{"probe_resistance local.host", "basicauth john doe"}, true)
92+
testParsing([]string{"probe_resistance local.host very.local.host", "basicauth john doe"}, false)
9393

9494
testParsing([]string{"serve_pac"}, true)
9595
testParsing([]string{"serve_pac \"\""}, true)

0 commit comments

Comments
 (0)