arakar
10-11-2007, 17:03
When setting up a static WAN IP address, I receive the following error:
... not a valid IP address!
The address starts with 84.255.x.x
I found out, that there is a bug in /www/English/general.js in line 211:
if(v1==255||v2==255||v3==255||v4==255||v1==0||v4== 0||v1==127||v1==224)
which does not allow number 255 in any part of IP address, which is incorrect.
The line should be:
if(v1==0||v4==0||v1==127||v1==224)
I am using kfurge's firmware, but I am sure that the bug is present in original one as well.
As a workaround, I copied the contents of /www directory to a writable location, i.e: /shares/MYVOLUME1/www
changed general.js as above, mounted the new location as /www and restarted httpd. Then, I was able to change the IP address in Web Manager.
Luckily, the check is done only during setup and not during normal operation. However, I would prefer to change the general.js file permanently at the original read-only location, but I don't know how.
Please help!
Andrej
... not a valid IP address!
The address starts with 84.255.x.x
I found out, that there is a bug in /www/English/general.js in line 211:
if(v1==255||v2==255||v3==255||v4==255||v1==0||v4== 0||v1==127||v1==224)
which does not allow number 255 in any part of IP address, which is incorrect.
The line should be:
if(v1==0||v4==0||v1==127||v1==224)
I am using kfurge's firmware, but I am sure that the bug is present in original one as well.
As a workaround, I copied the contents of /www directory to a writable location, i.e: /shares/MYVOLUME1/www
changed general.js as above, mounted the new location as /www and restarted httpd. Then, I was able to change the IP address in Web Manager.
Luckily, the check is done only during setup and not during normal operation. However, I would prefer to change the general.js file permanently at the original read-only location, but I don't know how.
Please help!
Andrej