tlstun

simple go program to add tls support to other listeners
git clone https://git.parazyd.org/tlstun
Log | Files | Refs | README | LICENSE

commit bfc93c161a971ddc80e3ed3af90691353ecd7392
parent daae2776c206bfcfa8eda866d780a6b243c1cce2
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:
Mtlstun.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tlstun.go b/tlstun.go @@ -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