mirror of
https://github.com/jeremyd/ergo.git
synced 2026-08-01 11:43:06 -07:00
add authtoken cap value (#2413)
This commit is contained in:
committed by
GitHub
parent
c9943154aa
commit
7280ab8993
+3
-1
@@ -1805,7 +1805,9 @@ func LoadConfig(filename string) (config *Config, err error) {
|
||||
if err = config.AuthToken.Postprocess(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !config.AuthToken.Enabled {
|
||||
if config.AuthToken.Enabled {
|
||||
config.Server.capValues[caps.AuthToken] = "client-batch"
|
||||
} else {
|
||||
config.Server.supportedCaps.Disable(caps.AuthToken)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user