From 6d6a63878b1d33c8f6c4bae8ad55e1af724358d5 Mon Sep 17 00:00:00 2001 From: zikaeroh <48577114+zikaeroh@users.noreply.github.com> Date: Sat, 30 May 2020 12:06:27 -0700 Subject: [PATCH] Enable compression context takeover, tweak debug mode options --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 5d30767..1439a39 100644 --- a/main.go +++ b/main.go @@ -52,12 +52,13 @@ func main() { log.Printf("starting codies server, version %s", version.Version()) wsOpts = &websocket.AcceptOptions{ - OriginPatterns: args.Origins, + OriginPatterns: args.Origins, + CompressionMode: websocket.CompressionContextTakeover, } if args.Debug { log.Println("starting in debug mode, allowing any WebSocket origin host") - wsOpts.OriginPatterns = []string{"*"} + wsOpts.InsecureSkipVerify = true } else { if !version.VersionSet() { log.Fatal("running production build without version set")