diff --git a/lib/tether/ops_linux.go b/lib/tether/ops_linux.go index bb8a0a439f..7d48f49f7a 100644 --- a/lib/tether/ops_linux.go +++ b/lib/tether/ops_linux.go @@ -960,15 +960,6 @@ func (t *BaseOperations) MountTarget(ctx context.Context, source url.URL, target } rawSource.WriteString(source.Path) - if ip := net.ParseIP(source.Hostname()); ip != nil { - if err := syscallMount(rawSource.String(), target, nfsFileSystemType, mountOptions); err != nil { - log.Errorf("mounting %s on %s failed: %s", source.String(), target, err) - return err - } - return nil - } - - log.Debugf("Looking up host %s", source.Hostname()) ips, err := net.LookupIP(source.Hostname()) if err != nil { log.Errorf("failing to resolve %s. mounting %s on %s failed: %s", source.Hostname(), source.String(), target, err)