Skip to content

Commit

Permalink
Remove unnecessary logic
Browse files Browse the repository at this point in the history
to be squashed
  • Loading branch information
buger committed Jan 11, 2018
1 parent 278053e commit 4f7b286
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ var (
controlRouter *mux.Router
LE_MANAGER letsencrypt.Manager
LE_FIRSTRUN bool
tlsCiphers []uint16

NodeID string

Expand Down Expand Up @@ -1205,17 +1204,13 @@ func generateListener(listenPort int) (net.Listener, error) {
"prefix": "main",
}).Info("--> Using SSL (https)")

if config.Global.HttpServerOptions.Ciphers != nil {
tlsCiphers = getCipherAliases(config.Global.HttpServerOptions.Ciphers)
}

tlsConfig := tls.Config{
GetCertificate: dummyGetCertificate,
ServerName: config.Global.HttpServerOptions.ServerName,
MinVersion: config.Global.HttpServerOptions.MinVersion,
ClientAuth: tls.RequestClientCert,
InsecureSkipVerify: config.Global.HttpServerOptions.SSLInsecureSkipVerify,
CipherSuites: tlsCiphers,
CipherSuites: getCipherAliases(config.Global.HttpServerOptions.Ciphers),
}

tlsConfig.GetConfigForClient = getTLSConfigForClient(&tlsConfig, listenPort)
Expand Down

0 comments on commit 4f7b286

Please sign in to comment.