fixes for buiding remote gaming server

This commit is contained in:
2023-03-01 17:15:41 +00:00
parent 6f9d3dd345
commit c88b4343ce
6 changed files with 16 additions and 3 deletions

View File

@@ -117,15 +117,18 @@ func main() {
if *GameServer {
go gameserver.Server(Config.InternalGameServerPort)
time.Sleep(2 * time.Second)
}
if !*GameServer || *BothServers {
if *tls {
log.Println("Listening on TLS:", *addr+":"+Config.InternalScreenSharePort)
go http.ListenAndServeTLS(*addr+":"+Config.InternalScreenSharePort, *certFile, *keyFile, server)
time.Sleep(2 * time.Second)
} else {
log.Println("Listening:", *addr+":"+Config.InternalScreenSharePort)
go http.ListenAndServe(*addr+":"+Config.InternalScreenSharePort, server)
time.Sleep(2 * time.Second)
}
}