Skip to content

get first interface with ipv4 or return 0.0.0.0 if none

ueli heuer requested to merge github/fork/si458/fix-network into master

Created by: si458

Signed-off-by: Simon Smith simonsmith5521@gmail.com

Description

rpi4 has built in wifi, even tho its not used, the first interface seems to be the wifi, so no ipv4 address is defined

Related Issue

This PR fixes or closes issue: fixes https://github.com/crismc/homeassistant_addons/issues/8

Motivation and Context

How Has This Been Tested

Types of changes

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 🌎 Translation (addition or update a translation)
  • ️ Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have tested the change locally.

Merge request reports

Loading