mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 22:46:37 +00:00
Improve config
This commit is contained in:
12
main.go
12
main.go
@@ -91,9 +91,17 @@ func main() {
|
||||
|
||||
// create the gateway
|
||||
handlerConfig := protocol.HandlerConf{
|
||||
TokenAuth: true,
|
||||
IdleTimeout: conf.Caps.IdleTimeout,
|
||||
TokenAuth: conf.Caps.TokenAuth,
|
||||
SmartCardAuth: conf.Caps.SmartCardAuth,
|
||||
RedirectFlags: protocol.RedirectFlags{
|
||||
Clipboard: true,
|
||||
Clipboard: conf.Caps.EnableClipboard,
|
||||
Drive: conf.Caps.EnableDrive,
|
||||
Printer: conf.Caps.EnablePrinter,
|
||||
Port: conf.Caps.EnablePort,
|
||||
Pnp: conf.Caps.EnablePnp,
|
||||
DisableAll: conf.Caps.DisableRedirect,
|
||||
EnableAll: conf.Caps.RedirectAll,
|
||||
},
|
||||
}
|
||||
gw := protocol.Gateway{
|
||||
|
||||
Reference in New Issue
Block a user