Skip to content

Commit 131dca8

Browse files
committed
[UI] bug fix: vpn configuration does not show/update ipsec pre-shared key
1 parent 2554cfb commit 131dca8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/scripts/network.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,7 +2363,7 @@
23632363
}
23642364

23652365
return {
2366-
vpn: json.queryasyncjobresultresponse.jobresult.remoteaccessvpn,
2366+
remoteaccessvpn: json.queryasyncjobresultresponse.jobresult.remoteaccessvpn,
23672367
vpnenabled: vpnenabledAndRunning
23682368
};
23692369
},
@@ -2388,8 +2388,8 @@
23882388
},
23892389
complete: function(args) {
23902390
var msg;
2391-
if (args.vpn.state == "Running") {
2392-
msg = _l('message.enabled.vpn') + ' ' + args.vpn.publicip + '.' + '<br/>' + _l('message.enabled.vpn.ip.sec') + '<br/>' + args.vpn.presharedkey;
2391+
if (args.remoteaccessvpn.state == "Running") {
2392+
msg = _l('message.enabled.vpn') + ' ' + args.remoteaccessvpn.publicip + '.' + '<br/>' + _l('message.enabled.vpn.ip.sec') + '<br/>' + args.remoteaccessvpn.presharedkey;
23932393
} else {
23942394
msg = "Remote Access VPN configuration has been generated, but it failed to apply. Please check connectivity of the network element, then re-try.";
23952395
}

0 commit comments

Comments
 (0)