mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Merge pull request #1890 from ustcweizhou/vpn-preshared-key-issue
[4.9] CLOUDSTACK-9712: FIX issue on preshared key if we disable/enable remote access vpnWay to reproduce the issue (1) enable remote access vpn root@r-8349-VM:~# cat /etc/ipsec.d/ipsec.any.secrets : PSK "mVSx5KDXCPYX7X5DGb2W8yNW" (2) disable/enable vpn root@r-8349-VM:~# cat /etc/ipsec.d/ipsec.any.secrets : PSK "mVSx5KDXCPYX7X5DGb2W8yNW" : PSK "HeV3dHZpZXt4chhfvhx8D83C" Expected configuration: root@r-8349-VM:~# cat /etc/ipsec.d/ipsec.any.secrets : PSK "HeV3dHZpZXt4chhfvhx8D83C" * pr/1890: FIX issue on preshared key if we disable/enable remote access vpn Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
This commit is contained in:
commit
c8916792c6
@ -659,6 +659,7 @@ class CsRemoteAccessVpn(CsDataBag):
|
||||
|
||||
|
||||
secret = CsFile(vpnsecretfilte)
|
||||
secret.empty()
|
||||
secret.addeq(": PSK \"%s\"" %psk)
|
||||
secret.commit()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user