diff --git a/cmd/cloudflared/main.go b/cmd/cloudflared/main.go index cd2c76d3..1828868f 100644 --- a/cmd/cloudflared/main.go +++ b/cmd/cloudflared/main.go @@ -468,7 +468,7 @@ func startServer(c *cli.Context, shutdownC, graceShutdownC chan struct{}) error }() go notifySystemd(connectedSignal) - if c.IsSet("pidFile") { + if c.IsSet("pidfile") { go writePidFile(connectedSignal, c.String("pidfile")) } diff --git a/h2mux/h2mux.go b/h2mux/h2mux.go index 84577162..d653469a 100644 --- a/h2mux/h2mux.go +++ b/h2mux/h2mux.go @@ -123,6 +123,7 @@ func Handshake( m.compressionQuality = config.CompressionQuality.getPreset() } else { log.Debug("Compression is not supported") + compressionSetting = http2.Setting{ID: SettingCompression, Val: 0} } expectedMagic := MuxerMagicOrigin