typo
This commit is contained in:
parent
6dd6211f79
commit
0b7ea3240d
4
httpd.go
4
httpd.go
|
@ -130,8 +130,8 @@ func NewHTTPServer(port, key, cert string, s *OpenVpnMgt) {
|
|||
|
||||
switch {
|
||||
case key == "" && cert == "":
|
||||
log.Fatal(http.ListenAndServeTLS(port, cert, key, nil))
|
||||
default:
|
||||
log.Fatal(http.ListenAndServe(port, nil))
|
||||
default:
|
||||
log.Fatal(http.ListenAndServeTLS(port, cert, key, nil))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue