mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 22:46:37 +00:00
Use standard HandleFunc pattern
This commit is contained in:
4
main.go
4
main.go
@@ -41,10 +41,10 @@ func main() {
|
||||
cfg.Certificates = append(cfg.Certificates, cert)
|
||||
server := http.Server{
|
||||
Addr: ":" + strconv.Itoa(*port),
|
||||
Handler: Upgrade(nil),
|
||||
TLSConfig: cfg,
|
||||
}
|
||||
|
||||
http.HandleFunc("/remoteDesktopGateway/", handleGatewayProtocol)
|
||||
|
||||
err = server.ListenAndServeTLS("", "")
|
||||
if err != nil {
|
||||
log.Fatal("ListenAndServe: ", err)
|
||||
|
||||
Reference in New Issue
Block a user