path: root/contrib/ncat-client-server
diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2017-07-16 16:12:20 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-07-20 03:37:39 +0200
commitaad91ae6791910315a929cc3f1973e96d33bcd1c (patch)
tree59bff028036c2430f0bf87f7a8d34610d4453c68 /contrib/ncat-client-server
parentgitignore: ignore split DWARF debug info (diff)
global: wireguard.io --> wireguard.com
Due to concerns with the .io TLD, we are switching to using wireguard.com instead. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'contrib/ncat-client-server')
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ncat-client-server/README b/contrib/ncat-client-server/README
index f584829..0c0667a 100644
--- a/contrib/ncat-client-server/README
+++ b/contrib/ncat-client-server/README
@@ -11,6 +11,6 @@ That all said, this is a pretty cool example of just how
darn easy WireGuard can be.
- The `demo.wireguard.io` server in client.sh is for testing
+ The `demo.wireguard.com` server in client.sh is for testing
purposes only. You may not use this server for abusive or
illegal purposes.
diff --git a/contrib/ncat-client-server/client.sh b/contrib/ncat-client-server/client.sh
index b49a05e..1d30f49 100755
--- a/contrib/ncat-client-server/client.sh
+++ b/contrib/ncat-client-server/client.sh
@@ -6,13 +6,13 @@ set -e
[[ $UID == 0 ]] || { echo "You must be root to run this."; exit 1; }
umask 077
trap 'rm -f /tmp/wg_private_key' EXIT INT TERM
-exec 3<>/dev/tcp/demo.wireguard.io/42912
+exec 3<>/dev/tcp/demo.wireguard.com/42912
wg genkey | tee /tmp/wg_private_key | wg pubkey >&3
IFS=: read -r status server_pubkey server_port internal_ip <&3
[[ $status == OK ]]
ip link del dev wg0 2>/dev/null || true
ip link add dev wg0 type wireguard
-wg set wg0 private-key /tmp/wg_private_key peer "$server_pubkey" allowed-ips endpoint "demo.wireguard.io:$server_port" persistent-keepalive 25
+wg set wg0 private-key /tmp/wg_private_key peer "$server_pubkey" allowed-ips endpoint "demo.wireguard.com:$server_port" persistent-keepalive 25
ip address add "$internal_ip"/24 dev wg0
ip link set up dev wg0
if [ "$1" == "default-route" ]; then