summaryrefslogtreecommitdiff
path: root/scripts/dmvpn-config.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dmvpn-config.pl')
-rwxr-xr-xscripts/dmvpn-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dmvpn-config.pl b/scripts/dmvpn-config.pl
index a1d80a8..5562a7c 100755
--- a/scripts/dmvpn-config.pl
+++ b/scripts/dmvpn-config.pl
@@ -36,7 +36,6 @@ my $LOGFILE = '/var/log/vyatta/ipsec.log';
my $vpn_cfg_err = "VPN configuration error:";
my $genout;
my $dh_disable;
-my $conf_header = 0;
$genout .= "# generated by $0\n\n";
@@ -86,6 +85,7 @@ if ( $vcVPN->exists('ipsec') ) {
my @profiles = $vcVPN->listNodes('ipsec profile');
my $prev_profile = "";
foreach my $profile (@profiles) {
+ my $conf_header = 0;
my $profile_ike_group = $vcVPN->returnValue("ipsec profile $profile ike-group");
if ( !defined($profile_ike_group) || $profile_ike_group eq '' ) {
vpn_die([ "vpn", "ipsec", "profile", $profile, "ike-group" ],