tDie on unsupported TLS version and be more explicit in setting it. - tlstun - simple go program to add tls support to other listeners HTML git clone https://git.parazyd.org/tlstun DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit bfc93c161a971ddc80e3ed3af90691353ecd7392 DIR parent daae2776c206bfcfa8eda866d780a6b243c1cce2 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 10 Jul 2019 02:07:44 +0200 Die on unsupported TLS version and be more explicit in setting it. Diffstat: M tlstun.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/tlstun.go b/tlstun.go t@@ -70,8 +70,9 @@ func tlsConfig(cert, key string) (*tls.Config, error) { case 12: tlscfg.MinVersion = tls.VersionTLS12 case 13: - default: tlscfg.MinVersion = tls.VersionTLS13 + default: + log.Fatal("Unsupported TLS version:", *tlsver) } return tlscfg, nil