Right now the module only supports ipv4 addresses. Add support for ipv6 address too. We can change the complete current implementation and just use the symfony Symfony\Component\HttpFoundation\IpUtils - ipcheck function. Would be faster and better.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2978274-3.patch | 2.03 KB | shubhangi1995 |
| #2 | Add_support_for_ipv6_addresses_too-2978274-2.patch | 2 KB | bibliophileaxe |
Issue fork restrict_role_login_by_ip-2978274
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bibliophileaxeUsed ipcheck function to compare both ipv6 and ipv4 values.
Comment #3
shubhangi1995Patch as per 3.X version