Remove incorrectly committed line and wrong comment

This commit is contained in:
Michael Schurter 2016-11-01 15:57:21 -07:00
parent abcc0ea852
commit ae680c9c81

View file

@ -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