Add TLS server name option for client

This commit is contained in:
Toby
2021-05-08 16:39:25 -07:00
parent bf1dbe2f83
commit 2934f376d1
4 changed files with 4 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ func client(config *clientConfig) {
logrus.WithField("config", config.String()).Info("Client configuration loaded")
// TLS
tlsConfig := &tls.Config{
ServerName: config.ServerName,
InsecureSkipVerify: config.Insecure,
NextProtos: []string{tlsProtocolName},
MinVersion: tls.VersionTLS13,