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/coreos/go-semver/semver"
18
16
"github.com/docker/go-units"
@@ -512,16 +510,11 @@ func ValidateParamIsUsed(y *LimaYAML) error {
512
510
}
513
511
514
512
func lookupIP (host string ) error {
515
- var err error
516
513
if strings .HasSuffix (host , ".local" ) {
517
- var r net.Resolver
518
- const timeout = 500 * time .Millisecond // timeout for .local
519
- ctx , cancel := context .WithTimeout (context .TODO (), timeout )
520
- defer cancel ()
521
- _ , err = r .LookupIP (ctx , "ip" , host )
522
- } else {
523
- _ , err = net .LookupIP (host )
514
+ // allow offline or slow mDNS
515
+ return nil
524
516
}
517
+ _ , err := net .LookupIP (host )
525
518
return err
526
519
}
527
520
You can’t perform that action at this time.
0 commit comments