diff --git a/cmd/server/cmd/user-info.go b/cmd/server/cmd/user-info.go index fe64dacc2..c88bd3c72 100644 --- a/cmd/server/cmd/user-info.go +++ b/cmd/server/cmd/user-info.go @@ -39,6 +39,7 @@ var userinfoCmd = &cobra.Command{ user := getSettingByKey(db, "UserName") password := getSettingByKey(db, "Password") port := getSettingByKey(db, "ServerPort") + ssl := getSettingByKey(db, "SSL") entrance := getSettingByKey(db, "SecurityEntrance") enptrySetting := getSettingByKey(db, "EncryptKey") @@ -50,10 +51,16 @@ var userinfoCmd = &cobra.Command{ p = password } - fmt.Printf("entrance: %s\n", entrance) + protocol := "http" + if ssl == "enable" { + protocol = "https" + } + fmt.Printf("username: %s\n", user) fmt.Printf("password: %s\n", p) fmt.Printf("port: %s\n", port) + fmt.Printf("protocol: %s\n", protocol) + fmt.Printf("entrance: %s\n", entrance) return nil }, } diff --git a/frontend/src/views/setting/safe/ssl/index.vue b/frontend/src/views/setting/safe/ssl/index.vue index f7d9d8d0b..4f39eda96 100644 --- a/frontend/src/views/setting/safe/ssl/index.vue +++ b/frontend/src/views/setting/safe/ssl/index.vue @@ -78,7 +78,7 @@