Skip to content

Commit

Permalink
Print firewall notice if colima network cannot be detected
Browse files Browse the repository at this point in the history
  • Loading branch information
avsej authored and brett19 committed Sep 20, 2024
1 parent d80ee90 commit 1484827
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1484827

Please sign in to comment.