Parallels / docker-machine-parallels

Parallels driver for Docker Machine https://github.com/docker/machine
MIT License
471 stars 35 forks source link

Improve the check if Shared network adapter is connected #96

Closed legal90 closed 4 years ago

legal90 commented 4 years ago

Fixes https://github.com/Parallels/docker-machine-parallels/issues/93

This PR fixes the compatibility issue with Parallels Desktop 16 and macOS 11 Big Sur.

Instead of looking for "Bound To" in the output of prlsrvctl net info Shared, now we will parse the adapter's IP and look if there is a network interface with this IP assigned on the host.