fix: Fix 1pctl user-info retrieval exception (#10010)

Refs #10006
This commit is contained in:
ssongliu 2025-08-15 17:35:04 +08:00 committed by GitHub
parent 1d76e54b0d
commit 18462296ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,6 +44,10 @@ var userinfoCmd = &cobra.Command{
ssl := getSettingByKey(db, "SSL")
entrance := getSettingByKey(db, "SecurityEntrance")
address := getSettingByKey(agentDB, "SystemIP")
domain := getSettingByKey(db, "BindDomain")
if len(domain) != 0 {
address = domain
}
protocol := "http"
if ssl == constant.StatusEnable {