During development I build the server with make -C server DEV=1 (after setting GOROOT and GOPATH to use tris). For some reason, the production build (without DEV=1) resulted in strange test failures.
A closer look showed that the Client Hello packet contained version 0x304 ("TLS 1.3") which should not have happened (TLS 1.3 is negotiated via the supported_versions extension). I smell a bug in the minification functionality of gopherjs, but this needs further investigation to confirm.
As a workaround, tls13.mitm.watch currently uses the build without minification.
An outdated version of crypto/tls was built, I had to remove $GOPATH/pkg/linux_js_min/ to make it work properly. Will deploy a new version with other fixes as well.
During development I build the server with
make -C server DEV=1
(after setting GOROOT and GOPATH to use tris). For some reason, the production build (withoutDEV=1
) resulted in strange test failures.A closer look showed that the Client Hello packet contained version 0x304 ("TLS 1.3") which should not have happened (TLS 1.3 is negotiated via the supported_versions extension). I smell a bug in the minification functionality of gopherjs, but this needs further investigation to confirm.
As a workaround, tls13.mitm.watch currently uses the build without minification.
Software versions: