From 466b5776eb25a5bdfde1ea920213212bc1bd9d07 Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Fri, 20 Sep 2024 10:54:03 -0700 Subject: [PATCH] Print firewall notice if colima network cannot be detected --- cmd/init.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/init.go b/cmd/init.go index c27a98a..e33006e 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -226,6 +226,13 @@ var initCmd = &cobra.Command{ return "" } + if instance.Address == "" { + fmt.Println(`Failed to detect colima address with 'colima ls'. +* make sure colima started with '--network-address' +* try to disable firewall at 'System Settings' -> Network -> Firewall.`) + return "" + } + return instance.Address }