File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
1
package limayaml
2
2
3
3
import (
4
- "context"
5
4
"errors"
6
5
"fmt"
7
6
"net"
@@ -12,7 +11,6 @@ import (
12
11
"runtime"
13
12
"strings"
14
13
"unicode"
15
- "time"
16
14
17
15
"github.com/containerd/containerd/identifiers"
18
16
"github.com/coreos/go-semver/semver"
@@ -513,16 +511,11 @@ func ValidateParamIsUsed(y *LimaYAML) error {
513
511
}
514
512
515
513
func lookupIP (host string ) error {
516
- var err error
517
514
if strings .HasSuffix (host , ".local" ) {
518
- var r net.Resolver
519
- const timeout = 500 * time .Millisecond // timeout for .local
520
- ctx , cancel := context .WithTimeout (context .TODO (), timeout )
521
- defer cancel ()
522
- _ , err = r .LookupIP (ctx , "ip" , host )
523
- } else {
524
- _ , err = net .LookupIP (host )
515
+ // allow offline or slow mDNS
516
+ return nil
525
517
}
518
+ _ , err := net .LookupIP (host )
526
519
return err
527
520
}
528
521
You can’t perform that action at this time.
0 commit comments