Skip to content

Commit

Permalink
Update Source.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
TheyCallMeSecond authored Nov 23, 2023
1 parent 24f9d5a commit 6955b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sing-Box_Config_Installer/Source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,8 @@ regenerate_keys() {

# Generate keys using sing-box command
output=$(RS generate reality-keypair)
new_private_key=$(echo "$output" | grep -o 'PrivateKey: [^\n]*' | cut -d' ' -f2)
new_public_key=$(echo "$output" | grep -o 'PublicKey: [^\n]*' | cut -d' ' -f2)
new_private_key=$(echo "$output" | grep -oP 'PrivateKey: \K\S+')
new_public_key=$(echo "$output" | grep -oP 'PublicKey: \K\S+')
new_short_id=$(RS generate rand 8 --hex)

# Path to the files
Expand Down

0 comments on commit 6955b4e

Please sign in to comment.