diff --git a/helper/tlsutil/config.go b/helper/tlsutil/config.go index b709ffec4..0bcf13003 100644 --- a/helper/tlsutil/config.go +++ b/helper/tlsutil/config.go @@ -111,7 +111,6 @@ func (c *Config) OutgoingTLSConfig() (*tls.Config, error) { InsecureSkipVerify: true, } if c.VerifyServerHostname { - // ServerName is filled in dynamically based on the target DC tlsConfig.InsecureSkipVerify = false } @@ -228,7 +227,6 @@ func (c *Config) IncomingTLSConfig() (*tls.Config, error) { tlsConfig := &tls.Config{ ClientCAs: x509.NewCertPool(), ClientAuth: tls.NoClientCert, - ServerName: "*." + region + ".nomad", } // Parse the CA cert if any