diff --git a/src/mount/mastercomm.cc b/src/mount/mastercomm.cc index 8e66e0bb1..b7721751f 100644 --- a/src/mount/mastercomm.cc +++ b/src/mount/mastercomm.cc @@ -58,7 +58,9 @@ #include "protocol/SFSCommunication.h" #include "protocol/packet.h" -const uint32_t localhost = 0x7F000001; +bool isLoopbackAddress(uint32_t ip) { + return ((ip & 0xFF000000) == 0x7F000000); // ip in range (127.0.0.0...127.255.255.255) +} struct threc { pthread_t thid;