File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,7 @@ func Validate(y LimaYAML, warn bool) error {
173
173
for i , rule := range y .PortForwards {
174
174
field := fmt .Sprintf ("portForwards[%d]" , i )
175
175
if rule .GuestIPMustBeZero && ! rule .GuestIP .Equal (net .IPv4zero ) && ! rule .GuestIP .Equal (net .IPv6zero ) {
176
- // Using IPv6 first so go vet doesn't complain about the error
177
- // message ending with a colon.
178
- return fmt .Errorf ("field `%s.guestIPMustBeZero` can only be true when field `%s.guestIP` is either :: or 0.0.0.0" , field , field )
176
+ return fmt .Errorf ("field `%s.guestIPMustBeZero` can only be true when field `%s.guestIP` is either `0.0.0.0` or `::`" , field , field )
179
177
}
180
178
if rule .GuestPort != 0 {
181
179
if rule .GuestSocket != "" {
You can’t perform that action at this time.
0 commit comments