mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-07-27 21:06:12 +02:00
Use standard HandleFunc pattern
This commit is contained in:
parent
3ab375314a
commit
1f191a5e41
2 changed files with 20 additions and 26 deletions
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue