dlandon / unassigned.devices

Unassigned Devices plugin for unRAID
Other
81 stars 39 forks source link

ping undefined behavior / multiple gateways #63

Closed shayne closed 3 years ago

shayne commented 3 years ago

If running Unraid with multiple gateways (nics/vlans), this line will grab multiple IP addresses. gateway becomes a string of multiple IPs passed to ping. This results in undefined behavior, a timeout and slows down nginx initialization for ~5 minutes after boot.

This change exits after the first routable IP is matched.