From 5cc4a5ed0710fac73d620c8ee15d233b283fe089 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:07:05 +0530 Subject: [PATCH] Print custom host with version --- cli/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/main.go b/cli/main.go index b2f6ecb659..798b75992c 100644 --- a/cli/main.go +++ b/cli/main.go @@ -79,6 +79,9 @@ func main() { // If no arguments are passed, show help os.Args = append(os.Args, "help") } + if os.Args[1] == "version" && viper.GetString("endpoint.api") != constants.EnteApiUrl { + log.Printf("Custom endpoint: %s\n", viper.GetString("endpoint.api")) + } cmd.Execute(&ctrl, AppVersion) }