success write tokens to config with toml (not finish)

This commit is contained in:
2023-09-15 19:09:20 +08:00
parent 7e09934024
commit 856bb3e27b
8 changed files with 39 additions and 33 deletions

View File

@@ -3,8 +3,8 @@
# frps panel config info
plugin_addr = "127.0.0.1" #aadr
plugin_port = 7200
admin_user = "admin"
admin_pwd = "admin"
#admin_user = "admin"
#admin_pwd = "admin"
# specified login state keep time
admin_keep_time = 0

View File

@@ -1,18 +1,17 @@
# token info
[[tokens]]
user = "user1"
token = "token1"
comment = "张三"
ports = ["1", "2", "3", "10-100"]
domains = ["aaa.com", "bbb.com"]
subdomains = ["a.com", "b.com"]
status = true
[[tokens]]
user = "user2"
token = "token2"
comment = "李四"
ports = ["11", "22", "33", "110-200"]
domains = ["ccc.com", "ddd.com"]
subdomains = ["c.com", "d.com"]
status = true
[tokens]
[tokens.user1]
user = "user1"
token = "token1"
comment = "张三"
ports = ["1", "2", "3", "10-100"]
domains = ["aaa.com", "bbb.com"]
subdomains = ["a", "b"]
status = true
[tokens.user2]
user = "user2"
token = "token2"
comment = "李四"
ports = ["11", "22", "33", "110-200"]
domains = ["ccc.com", "ddd.com"]
subdomains = ["c", "d"]
status = true