summaryrefslogtreecommitdiff
path: root/scripts/vyatta-ipsec-dhcp.pl
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-06-08 17:44:27 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-06-08 17:44:27 -0500
commit90922c9913575a796498067aed275a5462c5df91 (patch)
tree0679cc80f84fa46abf1fd9192b821e163dae345a /scripts/vyatta-ipsec-dhcp.pl
parentce2126de840172e0de1616c0e60647f644140808 (diff)
downloadvyatta-cfg-vpn-90922c9913575a796498067aed275a5462c5df91.tar.gz
vyatta-cfg-vpn-90922c9913575a796498067aed275a5462c5df91.zip
Bugfix 7145: same changes were needed for site-to-site as well
Diffstat (limited to 'scripts/vyatta-ipsec-dhcp.pl')
-rwxr-xr-xscripts/vyatta-ipsec-dhcp.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vyatta-ipsec-dhcp.pl b/scripts/vyatta-ipsec-dhcp.pl
index 45ce4fc..6b8782c 100755
--- a/scripts/vyatta-ipsec-dhcp.pl
+++ b/scripts/vyatta-ipsec-dhcp.pl
@@ -93,6 +93,7 @@ open my $output_secrets, '>', $secrets_file
foreach my $line (@lines){
if (($line =~ /(.*)\#dhcp-interface=(.*)\#/) && ($2 eq $iface)){
my $secretline = $1;
+ $nip = "#" if ($nip eq '');
$secretline =~ /(.*?) (.*?) : PSK (.*)/;
$line = "$nip $2 : PSK $3\#dhcp-interface=$iface\#\n";
}