mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Fix token bug
When creating a fresh DB, it was setting the first token client to "any" instead of "", which prevented initial login.
This commit is contained in:
parent
c781e9615c
commit
b7dd326c96
@ -133,7 +133,7 @@ func Listen() {
|
||||
users := db.GetUsers()
|
||||
if len(users) == 0 {
|
||||
db.AddUser("admin", true)
|
||||
_, err := db.AddToken("admin", "any")
|
||||
_, err := db.AddToken("admin", "")
|
||||
if err != nil {
|
||||
log.Fatal("Failed to initialize admin user")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user