mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-17 05:53:50 +02:00
Refactor names
This commit is contained in:
parent
29d4b276e6
commit
fe6509d8ca
5 changed files with 154 additions and 141 deletions
4
main.go
4
main.go
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue