Small changes
This commit is contained in:
@@ -2,7 +2,4 @@ module github.com/CalebQ42/darkstorm-server
|
||||
|
||||
go 1.17
|
||||
|
||||
require (
|
||||
github.com/1lann/udp-forward v0.0.0-20191015034046-6b774a53ea39
|
||||
github.com/cssivision/reverseproxy v0.0.1
|
||||
)
|
||||
require github.com/1lann/udp-forward v0.0.0-20191015034046-6b774a53ea39
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
github.com/1lann/udp-forward v0.0.0-20191015034046-6b774a53ea39 h1:wAEqazqaAqb7wwijTl14KruBl7cvYytD3SkhXT9v5zs=
|
||||
github.com/1lann/udp-forward v0.0.0-20191015034046-6b774a53ea39/go.mod h1:zK6NTEHRcxPf9N4gcm0WXvE8RpsJfg/a8hMSW6dAQ0c=
|
||||
github.com/cssivision/reverseproxy v0.0.1 h1:IvhNE3XITZOWFhON2faKbrDeGpqa+yfessLQKSSt15U=
|
||||
github.com/cssivision/reverseproxy v0.0.1/go.mod h1:+QTeWrlVNQDAiB3pnaecTCk5rh1sS3cJltUl/+L2APg=
|
||||
|
||||
@@ -41,13 +41,6 @@ func webserver() {
|
||||
return
|
||||
}
|
||||
tlsConf.Certificates = append(tlsConf.Certificates, cert)
|
||||
cert, err = tls.LoadX509KeyPair(keyPath+"/foundrycert.pem", keyPath+"/foundrykey.pem")
|
||||
if err != nil {
|
||||
log.Println("Error while serving website:", err)
|
||||
quitChan <- "web err"
|
||||
return
|
||||
}
|
||||
tlsConf.Certificates = append(tlsConf.Certificates, cert)
|
||||
serve := http.Server{
|
||||
Addr: ":443",
|
||||
TLSConfig: tlsConf,
|
||||
|
||||
Reference in New Issue
Block a user