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

--- vncrepeater-0.14/repeater.cpp 2006-10-20 17:07:50.000000000 +0200
+++ vncrepeater-0.14.new/repeater.cpp 2016-11-19 17:04:59.907871000 +0100
@@ -593,7 +593,9 @@
static long parseId(char *IdCode)
{
unsigned int ii;
- int retVal;
+ //PFaf 20101122: Minor correction due to compiler warning
+ //int retVal;
+ long retVal;
debug(LEVEL_3, "parseId(): IdCode = %s\n", IdCode);
@@ -998,9 +1000,13 @@
allow = false;
//server 0 == denied
- if ((srvAddr.a == 0) || (srvAddr.b == 0) || (srvAddr.c == 0) || (srvAddr.d == 0))
+ //Fix by PFaf - 20101122
+ //Server address can be X.0.0.Y i.e. 10.0.0.1
+ //since these are valid addresses, so we should not exclude them.
+ //Only exclude addresses that start or end with zeros (0).
+ //if ((srvAddr.a == 0) || (srvAddr.b == 0) || (srvAddr.c == 0) || (srvAddr.d == 0))
+ if ((srvAddr.a == 0) || (srvAddr.d == 0))
allow = false;
-
//allowed so far ?
if (allow)
@@ -1983,7 +1989,7 @@
struct sigaction saInt;
//ini file default
- char defaultIniFilePathAndName[] = "/etc/uvncrepeater.ini";
+ char defaultIniFilePathAndName[] = "/etc/vncrepeater.conf";
char tmpBuf[MAX_PATH];
bool memoryOk;