fix Raspberry Pi build

This commit is contained in:
Martin Michelsen
2023-09-10 13:52:49 -07:00
parent 66ca3ed6dd
commit e64fa10a58
2 changed files with 2 additions and 4 deletions
+1
View File
@@ -3,6 +3,7 @@
#include <signal.h>
#include <string.h>
#include <mutex>
#include <phosg/Filesystem.hh>
#include <phosg/JSON.hh>
#include <phosg/Math.hh>
+1 -4
View File
@@ -68,10 +68,7 @@ map<string, uint32_t> get_local_addresses() {
bool is_local_address(uint32_t addr) {
uint8_t net = (addr >> 24) & 0xFF;
if ((net != 127) && (net != 172) && (net != 10) && (net != 192)) {
return false;
}
return true;
return ((net == 127) || (net == 172) || (net == 10) || (net == 192));
}
bool is_local_address(const sockaddr_storage& daddr) {