FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.9k stars 354 forks source link

rpiplay.cpp: replace find_mac() with version valid for non-eth0 systems #303

Closed fduncanh closed 2 years ago

fduncanh commented 2 years ago

tested on debian, ubuntu, OpenSUSE, macOS, FreeBSD

fduncanh commented 2 years ago

Modern linux such as Debian, Ubuntu etc no longer uses interface names like eth0. This replacement find_mac() backported from UxPlay 1.42 robustly finds the mac_address of the first active network port on linux systems, as well as on *BSD and macOS systems. (i.e, all unix-like systems but not Windows)

FD- commented 2 years ago

Looks got to me. Thanks for the backport!