mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 14:27:00 +08:00
success write tokens to config with toml (not finish)
This commit is contained in:
@@ -111,15 +111,9 @@ func parseConfigFile(configFile, tokensFile string) (controller.HandleController
|
||||
}
|
||||
}
|
||||
|
||||
tokens := make(map[string]controller.TokenInfo)
|
||||
|
||||
for _, token := range config.Tokens {
|
||||
tokens[token.User] = token
|
||||
}
|
||||
|
||||
return controller.HandleController{
|
||||
CommonInfo: config.Common,
|
||||
Tokens: tokens,
|
||||
Tokens: config.Tokens.Tokens,
|
||||
Version: version,
|
||||
ConfigFile: configFile,
|
||||
TokensFile: tokensFile,
|
||||
|
||||
Reference in New Issue
Block a user