Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (10 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigLinux/Generators/DNS.php

    r699 r738  
    137137    if(array_key_exists('IPv6', $Host) and ($Host['IPv6'] != ''))
    138138    {
    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);
     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);
    144144
    145145      $Host['Name'] = strtolower($Host['Name']);
     
    175175  'Alias' => array(),
    176176  'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67', '10.145.68',
    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'),
     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'),
    179179);
    180180
     
    237237  'Alias' => array(),
    238238  'Network' => array('81.2.194', '193.86.238', '212.111.4', '77.92.221'),
    239         'IPv6Network' => array('2a00:e580:244::/48'),
     239  'IPv6Network' => array('2a00:e580:244::/48'),
    240240);
    241241
     
    278278  'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67',
    279279    '10.145.68', '10.145.69', '10.145.70', '10.145.71'),
    280         'IPv6Network' => array(),
     280  'IPv6Network' => array(),
    281281);
    282282
     
    317317  'Alias' => array(),
    318318  'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67',
    319         '10.145.68', '10.145.69', '10.145.70', '10.145.71'),
    320         'IPv6Network' => array(),
     319    '10.145.68', '10.145.69', '10.145.70', '10.145.71'),
     320  'IPv6Network' => array(),
    321321);
    322322
Note: See TracChangeset for help on using the changeset viewer.