Skip to content

Commit

Permalink
Follow the advice, provide both pre-shared-key and preshared-key
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoupers committed Nov 20, 2024
1 parent 760af58 commit 401f4ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/clash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,10 @@ function nodeListMapper(nodeConfig: PossibleNodeConfigType) {
port: getPortFromHost(nodeConfig.peers[0].endpoint),
'public-key': nodeConfig.peers[0].publicKey,
...(nodeConfig.peers[0].presharedKey
? { 'pre-shared-key': nodeConfig.peers[0].presharedKey }
? {
'pre-shared-key': nodeConfig.peers[0].presharedKey,
'preshared-key': nodeConfig.peers[0].presharedKey,
}
: null),
...(nodeConfig.peers[0].reservedBits
? {
Expand Down

0 comments on commit 401f4ef

Please sign in to comment.