Looks good to me. I noticed that you also use the regexes
when matching the IP address. Did you really intend to use
regular expressions when using a user's IP in the users.ini?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Our intention was to leave logic as is, only add regexp pattern matching... So are you sure that original code works differently? I'm not the one who made changes (it was my friend), so I'm not 100% sure on the contents.
Also with this patch consider 1012734 (blocking IPs from repeatedly connecting) -- it has the same purpose -- to address performance issues.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good point.
I was looking into adding it to the next (immanent) version
but I think it would need some more testing. So it'll have
to wait until the one after the next one.
Thanks for your submission. Very nice indeed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Compiled regexp pattern caching.
Logged In: YES
user_id=169860
Looks good to me. I noticed that you also use the regexes
when matching the IP address. Did you really intend to use
regular expressions when using a user's IP in the users.ini?
Logged In: YES
user_id=1107760
Our intention was to leave logic as is, only add regexp pattern matching... So are you sure that original code works differently? I'm not the one who made changes (it was my friend), so I'm not 100% sure on the contents.
Also with this patch consider 1012734 (blocking IPs from repeatedly connecting) -- it has the same purpose -- to address performance issues.
Logged In: YES
user_id=169860
Good point.
I was looking into adding it to the next (immanent) version
but I think it would need some more testing. So it'll have
to wait until the one after the next one.
Thanks for your submission. Very nice indeed.