We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f9d5a commit 6955b4eCopy full SHA for 6955b4e
Sing-Box_Config_Installer/Source.sh
@@ -797,8 +797,8 @@ regenerate_keys() {
797
798
# Generate keys using sing-box command
799
output=$(RS generate reality-keypair)
800
- new_private_key=$(echo "$output" | grep -o 'PrivateKey: [^\n]*' | cut -d' ' -f2)
801
- 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+')
802
new_short_id=$(RS generate rand 8 --hex)
803
804
# Path to the files
0 commit comments