fix client unsupported h2 protocol when only 443 activated (#3009)

When I remove 80 http port in Caddyfile, netbird client cannot connect server:443. Logs show error below:
{"level":"debug","ts":1733809631.4012625,"logger":"http.stdlib","msg":"http: TLS handshake error from redacted:41580: tls: client requested unsupported application protocols ([h2])"}
I wonder here h2 protocol is absent.
This commit is contained in:
VYSE V.E.O 2024-12-16 21:17:46 +08:00 committed by GitHub
parent 9eff58ae62
commit 703647da1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -530,7 +530,7 @@ renderCaddyfile() {
{
debug
servers :80,:443 {
protocols h1 h2c h3
protocols h1 h2c h2 h3
}
}