<div dir="ltr">(moving this discussion to koha-devel)<br><div><br>Koha currently just uses regular expressions to match against IP addresses (see line 1040 or so in latest C4/Auth.pm). While this isn't terribly elegant, it's at least simple; what additional benefits does Net::IP::Match::XS bring? (It would also be a problematic dependency, given that it's not currently a Debian package.)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-24 22:59 GMT-06:00 Nicholas van Rheede van Oudtshoorn <span dir="ltr"><<a href="mailto:vanoudt@gmail.com" target="_blank">vanoudt@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Greetings everyone,<br><br></div>As I'm still very much a perl newbie, I'd love to get some feedback on a patch I just pushed to bug 14407 (my own bug!) We use Self-Checkout <a href="http://library.pbc.wa.edu.au/" target="_blank">here</a>, with users just having to scan their barcode to take books out. Our OPAC is also live over the internet. That means that anyone who knows Koha, can access the self-checkout from off campus! This patch adds a preference allowing one to limit access to those pages to specific IP addresses or ranges. I've used  Net::IP::Match::XS to do the heavy lifting - is there another library that Koha already uses to do the same sort of thing?<br><br></div>Thanks in advance,<br></div>Nick<br></div><a href="http://www.pbc.wa.edu.au/" target="_blank">Perth Bible College</a><br><br></div>
<br>_______________________________________________<br>
Koha-patches mailing list<br>
<a href="mailto:Koha-patches@lists.koha-community.org">Koha-patches@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Jesse Weaver</div>
</div>