dlandon / unassigned.devices

Unassigned Devices plugin for unRAID
Other
85 stars 40 forks source link

ping undefined behavior / multiple gateways #63

Closed shayne closed 4 years ago

shayne commented 4 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.