Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
opiran-club authored Aug 17, 2024
1 parent 2f8532b commit 0010baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0010baa

Please sign in to comment.