Update rany.md

This commit is contained in:
rany 2021-10-30 14:00:28 +03:00 committed by GitHub
parent 3c04f9e480
commit 0fafe782cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -11,10 +11,11 @@ All you need to do to get setup with Rany's On-the-go is the following (run it i
privkey=$(wg genkey)
pubkey=$(printf %s "$privkey" | wg pubkey)
ret=$(curl -s "-Fpubkey=$pubkey" rany1.duckdns.org:5000)
ret=$(curl -s -XPOST "-Fpubkey=$pubkey" http://rany1.duckdns.org:5000/)
myaddr=$(printf %s "$ret" | jq -rc .client_address)
serveraddr=$(printf %s "$ret" | jq -rc .server_address)
# serverpubkey=$(printf %s "$ret" | jq -rc .server_pubkey)
serverpubkey="CPOuiTlyE/+C/+3iZOv7XrjPEpwl0MFlbTN4nUrQkRo="
cat <<EOF
@ -29,4 +30,6 @@ AllowedIPs = fd00::/8
Endpoint = $serveraddr
PersistentKeepalive = 25
EOF
exit 0
```