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.
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.