Changeset 738 for trunk/Modules/NetworkConfigLinux/Generators/DNS.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigLinux/Generators/DNS.php
r699 r738 137 137 if(array_key_exists('IPv6', $Host) and ($Host['IPv6'] != '')) 138 138 { 139 140 141 142 143 139 $Addr = new NetworkAddressIPv6(); 140 $Addr->AddressFromString($Host['IPv6']); 141 $Octets = $Addr->GetOctets(); 142 $Octets = array_slice($Octets, 0, (128 - $Prefix) / 4); 143 $Octets = implode('.', $Octets); 144 144 145 145 $Host['Name'] = strtolower($Host['Name']); … … 175 175 'Alias' => array(), 176 176 'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67', '10.145.68', 177 178 177 '10.145.69', '10.145.70', '10.145.71', '77.92.221', '172.16.0', '172.16.1'), 178 'IPv6Network' => array('2a00:e580:244::/48'), 179 179 ); 180 180 … … 237 237 'Alias' => array(), 238 238 'Network' => array('81.2.194', '193.86.238', '212.111.4', '77.92.221'), 239 239 'IPv6Network' => array('2a00:e580:244::/48'), 240 240 ); 241 241 … … 278 278 'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67', 279 279 '10.145.68', '10.145.69', '10.145.70', '10.145.71'), 280 280 'IPv6Network' => array(), 281 281 ); 282 282 … … 317 317 'Alias' => array(), 318 318 'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67', 319 320 319 '10.145.68', '10.145.69', '10.145.70', '10.145.71'), 320 'IPv6Network' => array(), 321 321 ); 322 322
Note:
See TracChangeset
for help on using the changeset viewer.