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

Refs #10006
This commit is contained in:
ssongliu
2025-08-15 09:35:04 +00:00
committed by GitHub
parent 1d76e54b0d
commit 18462296ae
+4
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 {