mirror of
https://github.com/boringproxy/boringproxy.git
synced 2026-11-02 09:48:49 -06:00
print web UI token (fix after v0.9.0 changes)
This commit is contained in:
1 parent
41f41aaf13
commit
60ba341205
1 file changed
+2
-4
+2
-4
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user