Changeset 8019 in genesis for tools


Ignore:
Timestamp:
May 25, 2010, 2:41:37 PM (15 years ago)
Author:
rick
Message:

Get rid of the weird internalif subnumber assignment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/proxy-8.0/wleiden.pl

    r7696 r8019  
    278278  };
    279279  $output .= "\n";
     280  $output .= "# XXX: Automagic by finding out which IP is in 172.16.0.0/12, perhaps?\n";
     281  $output .= "internalif=\"" . $internalif . "\"\n";
     282
     283  $output .= "\n";
    280284  $output .= "static_routes=\"wleiden\"\n";
    281   $output .= "route_wleiden=\"-net 172.16.0.0/12 $internalroute\"\n";
    282 
    283   $output .= "\n";
    284   $output .= "internalif=\"" . $internalif . "1\"\n";
     285  @t = split(/\//,$IP{$internalif});
     286  $output .= "route_wleiden=\"-net 172.16.0.0/12 $t[0]\"\n";
     287
    285288
    286289  if( $proxyid ) {
Note: See TracChangeset for help on using the changeset viewer.