-
Notifications
You must be signed in to change notification settings - Fork 40
[BUG] Unable to Add IPv6 Subnet to ACL #643
Description
Replace everything between stars with current version of your facileManager and module installations:
fM Version : 4.6.2
fmDNS Version : 6.0.6
- I have read and understood the contributors guide.
- I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
- I have checked that the issue I'm posting isn't already reported.
- I have checked that the issue I'm posting isn't already solved and no duplicates exist in closed issues and opened issues
- I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
(BUG | ISSUE) Expected Behavior:
Click + next to an existing ACL
Type IPv6 into Matched Address List box
Click Save
Subnet is added to ACL
(BUG | ISSUE) Actual Behavior:
After clicking save:
Fatal error: Uncaught ArithmeticError: Bit shift by negative number in /var/www/html/fm-modules/fmDNS/functions.php:983 Stack trace: #0 /var/www/html/fm-modules/fmDNS/functions.php(492): checkCIDR('2603:6011:713d:...', '60', 128) #1 /var/www/html/fm-modules/fmDNS/classes/class_acls.php(661): verifyAndCleanAddresses('2603:6011:713d:...') #2 /var/www/html/fm-modules/fmDNS/classes/class_acls.php(71): fm_dns_acls->validatePost(Array) #3 /var/www/html/fm-modules/fmDNS/pages/config-acls.php(34): fm_dns_acls->add(Array) #4 /var/www/html/index.php(57): include('/var/www/html/f...') #5 {main} thrown in /var/www/html/fm-modules/fmDNS/functions.php on line 983
(BUG | ISSUE) Steps to reproduce:
Click + next to an existing ACL
Type IPv6 into Matched Address List box
Click Save