From a323b135124c2947859eaeb5dda77e145153142d Mon Sep 17 00:00:00 2001
From: hwdsl2 <hwdsl2@users.noreply.github.com>
Date: Wed, 29 Dec 2021 20:28:15 -0600
Subject: [PATCH] Update IKEv2 script

- Update Ubuntu 18.04 NSS fix with newer package versions.
  Ref: https://ubuntu.com/security/CVE-2021-43527
---
 extras/ikev2setup.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/extras/ikev2setup.sh b/extras/ikev2setup.sh
index ea06b39..5d586ff 100755
--- a/extras/ikev2setup.sh
+++ b/extras/ikev2setup.sh
@@ -1050,9 +1050,9 @@ apply_ubuntu1804_nss_fix() {
   if [ "$os_type" = "ubuntu" ] && [ "$os_ver" = "bustersid" ] && [ "$os_arch" = "x86_64" ]; then
     nss_url1="https://mirrors.kernel.org/ubuntu/pool/main/n/nss"
     nss_url2="https://mirrors.kernel.org/ubuntu/pool/universe/n/nss"
-    nss_deb1="libnss3_3.49.1-1ubuntu1.5_amd64.deb"
-    nss_deb2="libnss3-dev_3.49.1-1ubuntu1.5_amd64.deb"
-    nss_deb3="libnss3-tools_3.49.1-1ubuntu1.5_amd64.deb"
+    nss_deb1="libnss3_3.49.1-1ubuntu1.6_amd64.deb"
+    nss_deb2="libnss3-dev_3.49.1-1ubuntu1.6_amd64.deb"
+    nss_deb3="libnss3-tools_3.49.1-1ubuntu1.6_amd64.deb"
     if tmpdir=$(mktemp --tmpdir -d vpn.XXXXX 2>/dev/null); then
       bigecho2 "Applying fix for NSS bug on Ubuntu 18.04..."
       export DEBIAN_FRONTEND=noninteractive