Ignore:
Timestamp:
Apr 3, 2020, 12:30:49 AM (5 years ago)
Author:
chronos
Message:
  • Added: IPv6 mangle firewall configuration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r869 r870  
    21022102        "VALUES (NULL , 'Omezení rychlosti', ".$DbRow['Id'].", '".$ActionId."', '1');");
    21032103  }
     2104}
     2105
     2106function UpdateTo870($Manager)
     2107{
     2108  $Manager->Execute('ALTER TABLE `NetworkSubnet`ADD COLUMN `MaskIPv6` INT(11) NOT NULL AFTER `AddressRangeIPv6`;');
     2109  $Manager->Execute('UPDATE `NetworkSubnet` SET `MaskIPv6`=64 WHERE `AddressRangeIPv6` != ""');
     2110  $Manager->Execute('UPDATE `NetworkSubnet` SET `AddressRangeIPv6` = REPLACE(`AddressRangeIPv6`, "/64", "")');
    21042111}
    21052112
     
    22032210      862 => array('Revision' => 867, 'Function' => 'UpdateTo867'),
    22042211      867 => array('Revision' => 869, 'Function' => 'UpdateTo869'),
     2212      869 => array('Revision' => 870, 'Function' => 'UpdateTo870'),
    22052213    ));
    22062214  }
Note: See TracChangeset for help on using the changeset viewer.