From 0010baaf2c692eb695e2e8d2cf85e67bd697166c Mon Sep 17 00:00:00 2001 From: OPIran Official <130220895+opiran-club@users.noreply.github.com> Date: Sat, 17 Aug 2024 04:37:50 +0330 Subject: [PATCH] Update script.js --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 1269f4f..d854ccd 100644 --- a/script.js +++ b/script.js @@ -4,7 +4,7 @@ functionconvertToURL() { let privateKey = '', publicKey = '', address = '', mtu = '', endpoint = '', port = ''; - // Determine the formatconst isFormat1 = lines.some(line => line.includes('PrivateKey')) && lines.some(line => line.includes('Endpoint')); + // Determine the formatconst isFormat1 = lines.some(line => line.includes('PrivateKey =')) && lines.some(line => line.includes('Endpoint =')); const isFormat2 = lines.some(line => line.includes('Secret Key')) && lines.some(line => line.includes('Address')); if (isFormat1) {