Aquileo | Recent changes to patcheshttps://sourceforge.net/p/webcleaner/patches/Recent changes to patchesenWed, 14 Jan 2004 22:27:03 -0000Aquileo | bugfix for ip/network stuffhttps://sourceforge.net/p/webcleaner/patches/1/<div class="markdown_content"><p>Hi Basti,</p>
<p>really the first patch ? </p>
<p>1.) If filtered or allowed by adress/network, die "ip"<br />
is stored as (long) number. wenn loading this number it<br />
will not be recognized as ip adress any more.<br />
corresponding to strhosts2map the map2hosts method will<br />
be convert the ip-number back to AAA.BBB.CCC.DDD<br />
format. So the load and save configfile will result to<br />
the same data now and the configuration will be working<br />
after webcleaner stop/start now.</p>
<p>2.) network masks were wrong: a netmask "/24" means the<br />
LEFT 24 bits are left as is and the right 8 will be set<br />
to 0. You deleted the right 24 bits. So a<br />
192.168.2.1/24 will get 192.0.0.0 instead of<br />
192.168.2.0 :-(</p>
<p>fixed:<br />
id.py: mask2suffix and suffix2mask fixed for correct<br />
network filter<br />
id.py: map2hosts, does not convert the ip adress to<br />
string (98798172987 -> AAA.BBB.CCC.DDD)</p>
<p>ciao. Stefan Bambach ;-)</p></div>Stefan BambachWed, 14 Jan 2004 22:27:03 -0000https://sourceforge.net5da986d8cb980708a44f0dce056ec03aaa2c326d