diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-12-19 21:32:19 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-12-19 21:32:19 +0100 |
commit | abd609b8947b8d731b0a1fa084c724b08dcbf3a6 (patch) | |
tree | 8116083c73b69e355a7f992b32a18c9d34a5871b /scripts | |
parent | 7b0e7ce1c46cec565952b18a5044f7bc7be82196 (diff) | |
download | vyatta-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-x | scripts/vpn-config.pl | 2 |
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. |