summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-12-19 21:32:19 +0100
committerDaniil Baturin <daniil@baturin.org>2014-12-19 21:32:19 +0100
commitabd609b8947b8d731b0a1fa084c724b08dcbf3a6 (patch)
tree8116083c73b69e355a7f992b32a18c9d34a5871b /scripts
parent7b0e7ce1c46cec565952b18a5044f7bc7be82196 (diff)
downloadvyatta-cfg-vpn-abd609b8947b8d731b0a1fa084c724b08dcbf3a6.tar.gz
vyatta-cfg-vpn-abd609b8947b8d731b0a1fa084c724b08dcbf3a6.zip
Bug #414: quote the leftid value to avoid problems with non-alphanumeric characters.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vpn-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index 2228997..f9916c0 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -528,7 +528,7 @@ if ($vcVPN->exists('ipsec')) {
$genout .= "\tleft=$lip\n";
$leftsourceip = "\tleftsourceip=$lip\n";
}
- $genout .= "\tleftid=$authid\n" if defined $authid;
+ $genout .= "\tleftid=\"$authid\"\n" if defined $authid;
}
# @SM Todo: must have explicit settings for VTI.