|
|
@ -19,12 +19,10 @@ elsif ($pushRoutes eq 'enabled'){ |
|
|
|
my $mask = $network->prop('Mask'); |
|
|
|
my $mask = $network->prop('Mask'); |
|
|
|
my $gw = $network->prop('Router') || ''; |
|
|
|
my $gw = $network->prop('Router') || ''; |
|
|
|
my $vpn = $network->prop('VPN') || ''; |
|
|
|
my $vpn = $network->prop('VPN') || ''; |
|
|
|
if ($gw ne '') { |
|
|
|
next if (($network->prop('VPNRouted') || 'no') eq 'yes'); |
|
|
|
$route .= "push \"route $addr $mask"; |
|
|
|
$route .= "push \"route $addr $mask"; |
|
|
|
$route .= " $gw" if ($vpn eq ''); |
|
|
|
$route .= " $gw" if ($vpn eq '' && $gw ne ''); |
|
|
|
$OUT .= "$route\"\n"; |
|
|
|
$OUT .= "$route\"\n"; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|