Skip to content

Commit

Permalink
Merge pull request openshift#23 from s1061123/fix/cert-reload
Browse files Browse the repository at this point in the history
Fix ListenAndServeTLS to use GetCertificate correctly
  • Loading branch information
dougbtv committed Jul 16, 2019
2 parents de25e77 + 60325ad commit 46f6733
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/webhook/main.go
Expand Up @@ -15,8 +15,8 @@
package main

import (
"crypto/sha512"
"crypto/tls"
"crypto/sha512"
"crypto/tls"
"encoding/hex"
"flag"
"fmt"
Expand Down Expand Up @@ -67,7 +67,7 @@ func main() {
},
}

err := httpServer.ListenAndServeTLS(*cert, *key)
err := httpServer.ListenAndServeTLS("", "")
if err != nil {
glog.Fatalf("error starting web server: %v", err)
}
Expand Down

0 comments on commit 46f6733

Please sign in to comment.