Use server address without port for TLS certificate validation
@@ -121,7 +121,7 @@ func main() {
rolodexServerAddr := fmt.Sprintf("%s:%d", cfg.Rolodex.ServerAddress, cfg.Rolodex.ServerPort)
transportCreds := credentials.NewTLS(&tls.Config{
- ServerName: rolodexServerAddr,
+ ServerName: cfg.Rolodex.ServerAddress,
Certificates: []tls.Certificate{certificate},
RootCAs: caCertPool,
})
