You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

  1. --- a/repeater.cpp
  2. +++ b/repeater.cpp
  3. @@ -593,7 +593,9 @@ static bool checkIdCode(char *IdCode)
  4. static long parseId(char *IdCode)
  5. {
  6. unsigned int ii;
  7. - int retVal;
  8. + //PFaf 20101122: Minor correction due to compiler warning
  9. + //int retVal;
  10. + long retVal;
  11. debug(LEVEL_3, "parseId(): IdCode = %s\n", IdCode);
  12. @@ -998,9 +1000,13 @@ static bool isServerAddressAllowed(char
  13. allow = false;
  14. //server 0 == denied
  15. - if ((srvAddr.a == 0) || (srvAddr.b == 0) || (srvAddr.c == 0) || (srvAddr.d == 0))
  16. + //Fix by PFaf - 20101122
  17. + //Server address can be X.0.0.Y i.e. 10.0.0.1
  18. + //since these are valid addresses, so we should not exclude them.
  19. + //Only exclude addresses that start or end with zeros (0).
  20. + //if ((srvAddr.a == 0) || (srvAddr.b == 0) || (srvAddr.c == 0) || (srvAddr.d == 0))
  21. + if ((srvAddr.a == 0) || (srvAddr.d == 0))
  22. allow = false;
  23. -
  24. //allowed so far ?
  25. if (allow)
  26. @@ -1983,7 +1989,7 @@ int main(int argc, char **argv)
  27. struct sigaction saInt;
  28. //ini file default
  29. - char defaultIniFilePathAndName[] = "/etc/uvncrepeater.ini";
  30. + char defaultIniFilePathAndName[] = "/etc/vncrepeater.conf";
  31. char tmpBuf[MAX_PATH];
  32. bool memoryOk;