diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-06-08 17:44:27 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-06-08 17:44:27 -0500 |
commit | 90922c9913575a796498067aed275a5462c5df91 (patch) | |
tree | 0679cc80f84fa46abf1fd9192b821e163dae345a /scripts/vyatta-ipsec-dhcp.pl | |
parent | ce2126de840172e0de1616c0e60647f644140808 (diff) | |
download | vyatta-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-x | scripts/vyatta-ipsec-dhcp.pl | 1 |
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"; } |