Refactor names

This commit is contained in:
Bolke de Bruin 2020-07-29 19:09:29 +02:00
parent 29d4b276e6
commit fe6509d8ca
5 changed files with 154 additions and 141 deletions

View file

@ -103,7 +103,7 @@ func main() {
}
// create the gateway
handlerConfig := protocol.HandlerConf{
handlerConfig := protocol.ServerConf{
IdleTimeout: conf.Caps.IdleTimeout,
TokenAuth: conf.Caps.TokenAuth,
SmartCardAuth: conf.Caps.SmartCardAuth,
@ -120,7 +120,7 @@ func main() {
VerifyServerFunc: security.VerifyServerFunc,
}
gw := protocol.Gateway{
HandlerConf: &handlerConfig,
ServerConf: &handlerConfig,
}
http.Handle("/remoteDesktopGateway/", client.EnrichContext(http.HandlerFunc(gw.HandleGatewayProtocol)))