Misc. Ubuntu fixes.

This commit is contained in:
Robin E. R. Davies
2024-11-23 12:49:43 -05:00
parent b64c86af04
commit e79589e009
9 changed files with 16 additions and 14 deletions
+5 -3
View File
@@ -93,11 +93,13 @@ PiPedalVersion::PiPedalVersion(PiPedalModel&model)
this->webAddresses_.push_back(MakeWebAddress(SS(hostName << ".local"),port));
std::string ethAddr = GetInterfaceIpv4Address("eth0");
if (ethAddr.length() != 0)
auto ethAddresses = GetEthernetIpv4Addresses();
for (const std::string&ethAddress: ethAddresses)
{
this->webAddresses_.push_back(MakeWebAddress(ethAddr,port));
this->webAddresses_.push_back(MakeWebAddress(ethAddress,port));
}
// yyx: fix this for ubuntu.
std::string wlanAddr = GetInterfaceIpv4Address("wlan0");
if (wlanAddr.length() != 0)
{