Added Chrome 'host-resolver-rules' option

twdkeule 2017-05-26 10:46:27 +02:00
parent 274cf65ebd
commit b9e53d82c3

@ -37,7 +37,7 @@ However the initial connection will still happen over TCP untill the first HTTP
First, make sure your domain name is properly set in your Caddyfile and the command to launch Chrome _in all places_. First, make sure your domain name is properly set in your Caddyfile and the command to launch Chrome _in all places_.
Next, your site must use a trusted certificate as QUIC requires encryption. Next, your site must use a trusted certificate as QUIC requires encryption.
You can create a CA yourself an add it to your CA-database. When using this self-signed certificate, your site must have a hostname with top-level domain, eg. `foo.bar`, for Chromium to correctly send a QUIC ClientHello message. For testing over localhost you can add an entry to `/etc/hosts`. You can create a CA yourself an add it to your CA-database. When using this self-signed certificate, your site must have a hostname with top-level domain, eg. `foo.bar`, for Chromium to correctly send a QUIC ClientHello message. For testing over localhost you can add an entry to `/etc/hosts` or run Chrome with the host-resolver-rules option: `--host-resolver-rules='MAP foo.bar:<port> 127.0.0.1:<local_port>'`
If that's all good and if you're even just a little bit savvy with Go, then you could add `import "github.com/lucas-clemente/quic-go/utils"` and call `utils.SetLogLevel(utils.LogLevelDebug)` somewhere in Caddy's main() function. That will provide very detailed output. (Note that this log utility is not meant to be a public API.) If that's all good and if you're even just a little bit savvy with Go, then you could add `import "github.com/lucas-clemente/quic-go/utils"` and call `utils.SetLogLevel(utils.LogLevelDebug)` somewhere in Caddy's main() function. That will provide very detailed output. (Note that this log utility is not meant to be a public API.)