update db.go with USER and PASS ENV variables

This commit is contained in:
kking124 2021-06-02 09:19:44 -04:00 committed by GitHub
parent a558cce412
commit dd50da00cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ import (
)
const dbPath = "./db"
const defaultUsername = "admin"
const defaultPassword = "admin"
const defaultUsername = os.Getenv("USER")
const defaultPassword = os.Getenv("PASSS")
const defaultServerAddress = "10.252.1.0/24"
const defaultServerPort = 51820
const defaultDNS = "1.1.1.1"