Ignore:
Timestamp:
Feb 27, 2010, 2:59:28 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Generování pravidel pro NAT překlad.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/generators/firewall_nat.php

    r276 r277  
    4141    $NewAddress->Prefix = $Subnet['ExtMask'];
    4242    $Range = $NewAddress->GetRange();
    43     if($Subnet['ExtMask'] != 32) $Range = $Range['From']->AddressToStrin().'-'.$Range['To']->AddressToString();
    44       else $Range = $Range['From']->AddressToString();
     43    if($Subnet['ExtMask'] != 32) $Range = $Range['From']->AddressToString().'-'.$Range['To']->AddressToString();
     44      else $Rang  e = $Range['From']->AddressToString();
    4545    if($Subnet['Mask'] == 32) $Src = $Subnet['AddressRange'];
    4646      else $Src = $Subnet['AddressRange'].'/'.$Subnet['Mask'];
Note: See TracChangeset for help on using the changeset viewer.