Browse Source

only need the beginning of the IP address to establish local

Image 2 years ago
parent
commit
394f5aebbe
1 changed files with 3 additions and 3 deletions
  1. 3 3
      EQ2/source/common/MiscFunctions.h

+ 3 - 3
EQ2/source/common/MiscFunctions.h

@@ -95,11 +95,11 @@ bool INIReadInt(FILE *f, const char *section, const char *property, int *out);
 
 static bool IsPrivateAddress(uint32_t ip)
 {
-    uint8_t b1, b2, b3, b4;
+    uint8_t b1, b2;//, b3, b4;
     b1 = (uint8_t)(ip >> 24);
     b2 = (uint8_t)((ip >> 16) & 0x0ff);
-    b3 = (uint8_t)((ip >> 8) & 0x0ff);
-    b4 = (uint8_t)(ip & 0x0ff);
+    //b3 = (uint8_t)((ip >> 8) & 0x0ff);
+    //b4 = (uint8_t)(ip & 0x0ff);
 
     // 10.x.y.z
     if (b1 == 10)