httpcaddyfile: Improve detection of indistinguishable TLS automation policies (#5120)

* httpcaddyfile: Skip some logic if auto_https off

* Try removing this check altogether...

* Refine test timeouts slightly, sigh

* caddyhttp: Assume udp for unrecognized network type

Seems like the reasonable thing to do if a plugin registers its own
network type.

* Add comment to document my lack of knowledge

* Clean up and prepare to merge

Add comments to try to explain what happened
This commit is contained in:
Matt Holt
2022-10-13 11:30:57 -06:00
committed by GitHub
parent 3e1fd2a8d4
commit 6bad878a22
5 changed files with 56 additions and 58 deletions

View File

@ -436,8 +436,8 @@ func TestReverseProxyHealthCheck(t *testing.T) {
health_uri /health
health_port 2021
health_interval 2s
health_timeout 5s
health_interval 10ms
health_timeout 100ms
}
}
`, "caddyfile")