mirror of
https://github.com/samuelhbne/server-xray.git
synced 2025-12-16 20:07:06 +03:00
Set publicKey optional
This commit is contained in:
@@ -85,8 +85,8 @@ if [ -z "${xconf}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "${prvkey}" ] || [ -z "${pubkey}" ] ; then
|
||||
echo "Warning: PublicKey / PrivateKey undefined, Generated new..."
|
||||
if [ -z "${prvkey}" ]; then
|
||||
echo "Warning: PrivateKey undefined, Generated new..."
|
||||
kv=(`/usr/local/bin/xray x25519|cut -d ' ' -f3|tr ' '`)
|
||||
prvkey="${kv[0]}"
|
||||
pubkey="${kv[1]}"
|
||||
|
||||
Reference in New Issue
Block a user