rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: MarkV on December 13, 2005, 10:41:17 PM

Title: bans with more than one IP
Post by: MarkV on December 13, 2005, 10:41:17 PM
OK, here we go :roll:

HFS 2.0beta 30

Limits-bans

I want to enter 2 IP addresses allowed to connect to the server. It looks like this:

Code: [Select]
\192.168.0.1;192.168.0.24   |   allow these addresses
That works. Now i save the options (using .ini) and quit HFS. When I open it again, the display has changed. Now it looks this way:

Code: [Select]
\192.168.0.1                       |   allow these addresses
192.168.0.24                       |

It broke the IP chain at the ';', now the second IP is banned too.
I hope you get the point.

The .ini entry is:
Code: [Select]
ban-list=\192.168.0.1;192.168.0.24#allow these addresses;
You're also using the ';' as a seperator in the ini, is that the cause of the break?

MarkV
Title: bans with more than one IP
Post by: RazTK on December 14, 2005, 03:43:21 PM
I guess it causes to a break.
rejetto should fix that.
Title: bans with more than one IP
Post by: rejetto on December 28, 2005, 05:39:33 AM
big bad bug :(
easy to fix
but this will likely screw up previous ban configurations
Title: bans with more than one IP
Post by: rejetto on December 28, 2005, 06:10:53 AM
ok
now the ini uses | as separator (if present in the comment, it is encoded).
there is a warning for users whose configuration may be screwed up
Title: bans with more than one IP
Post by: rejetto on December 28, 2005, 06:19:25 AM
it will be fixed in next beta (33)
if you need it urgently, ask me in ICQ/MSN