mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-17 22:13:50 +02:00
Add comments and make client ip address verification optional but enabled by default
This commit is contained in:
parent
db00ce7be0
commit
c9213414c5
4 changed files with 21 additions and 6 deletions
|
@ -48,6 +48,7 @@ type SecurityConfig struct {
|
|||
PAATokenSigningKey string
|
||||
UserTokenEncryptionKey string
|
||||
UserTokenSigningKey string
|
||||
VerifyClientIp bool
|
||||
}
|
||||
|
||||
type ClientConfig struct {
|
||||
|
@ -61,9 +62,9 @@ func init() {
|
|||
viper.SetDefault("server.certFile", "server.pem")
|
||||
viper.SetDefault("server.keyFile", "key.pem")
|
||||
viper.SetDefault("server.port", 443)
|
||||
viper.SetDefault("security.enableOpenId", true)
|
||||
viper.SetDefault("client.networkAutoDetect", 1)
|
||||
viper.SetDefault("client.bandwidthAutoDetect", 1)
|
||||
viper.SetDefault("security.verifyClientIp", true)
|
||||
}
|
||||
|
||||
func Load(configFile string) Configuration {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue