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. --- vncrepeater-0.14/repeater.cpp 2006-10-20 17:07:50.000000000 +0200
  2. +++ vncrepeater-0.14.new/repeater.cpp 2016-11-19 17:04:59.907871000 +0100
  3. @@ -593,7 +593,9 @@
  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 @@
  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 @@
  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;