~gsthnz/satellite

08c1a5a59b68a33880f45218cdfad85b6e1b7c65 — Paper 3 years ago e84788c v1.0.0
Set minimum TLS version to TLS 1.2
1 files changed, 1 insertions(+), 0 deletions(-)

M tls.go
M tls.go => tls.go +1 -0
@@ 16,6 16,7 @@ import (

func getTLSConfig() *tls.Config {
	cfg := &tls.Config{}
	cfg.MinVersion = tls.VersionTLS12
	for i := 0; i < len(config.Domain); i++ {
		if config.Domain[i].Name == "" {
			fmt.Printf("Invalid domain name on domain %d\n", i)