现象:使用mac m1 发现无法使用 gorilla/websocket 开发的功能。都会报:error: RSV1 set, bad opcode 7, bad MASK

解决:https://github.com/gorilla/websocket/issues/886

是macbookpro 的 webfilter进程导致。webfilter是系统的"内容与隐私"启动的。
在这里插入图片描述
如图,关闭掉,重启mac;发现OK了

更多推荐