We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4f05cd commit 7f96480Copy full SHA for 7f96480
main.go
@@ -105,8 +105,10 @@ func main() {
105
TLSConfig: m.TLSConfig(),
106
}
107
s.Handler = mux
108
- s.ListenAndServeTLS("", "")
109
- } else {
110
- log.Fatal(http.ListenAndServeTLS(*fromURL, *certFile, *keyFile, mux))
+ log.Fatal(s.ListenAndServeTLS("", ""))
111
+
+ // Domain is not provided, serve using provided/generated certificate files
112
+ log.Fatal(http.ListenAndServeTLS(*fromURL, *certFile, *keyFile, mux))
113
114
0 commit comments