minio / sidekick

High Performance HTTP Sidecar Load Balancer
GNU Affero General Public License v3.0
546 stars 82 forks source link

Fix a crash in a ipv6-only machine #105

Closed vadmeste closed 7 months ago

vadmeste commented 7 months ago

getPublicIP() will simply crash if there is no a non-loopback interface with ipv4 address. This commit fix it.

Fixes https://github.com/minio/sidekick/issues/103