mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
print web UI token (fix after v0.9.0 changes)
This commit is contained in:
parent
41f41aaf13
commit
60ba341205
@ -153,10 +153,8 @@ func Listen() {
|
||||
}
|
||||
|
||||
if *printLogin {
|
||||
tokens := db.GetTokens()
|
||||
|
||||
for token, tokenData := range tokens {
|
||||
if tokenData.Owner == "admin" {
|
||||
for token, tokenData := range db.GetTokens() {
|
||||
if tokenData.Owner == "admin" && tokenData.Client == "" {
|
||||
printLoginInfo(token, db.GetAdminDomain())
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user