Added an IP address utility class and made the IpRange role use it.
- Adds support for IPv6 addresses and ranges denoted with partial addresses.
Showing
- config/vufind/permissions.ini 3 additions, 1 deletionconfig/vufind/permissions.ini
- module/VuFind/config/module.config.php 2 additions, 1 deletionmodule/VuFind/config/module.config.php
- module/VuFind/src/VuFind/Net/IpAddressUtils.php 120 additions, 0 deletionsmodule/VuFind/src/VuFind/Net/IpAddressUtils.php
- module/VuFind/src/VuFind/Role/PermissionProvider/Factory.php 4 additions, 1 deletionmodule/VuFind/src/VuFind/Role/PermissionProvider/Factory.php
- module/VuFind/src/VuFind/Role/PermissionProvider/IpRange.php 17 additions, 40 deletionsmodule/VuFind/src/VuFind/Role/PermissionProvider/IpRange.php
- module/VuFind/tests/unit-tests/src/VuFindTest/Net/IpAddressUtilsTest.php 116 additions, 0 deletions...ests/unit-tests/src/VuFindTest/Net/IpAddressUtilsTest.php
Please register or sign in to comment