From 006984ab3ff48831149290ea7c4bed97951929c1 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 16 Jul 2017 16:12:20 +0200 Subject: global: wireguard.io --> wireguard.com Due to concerns with the .io TLD, we are switching to using wireguard.com instead. --- contrib/examples/nat-hole-punching/nat-punch-client.c | 2 +- contrib/examples/ncat-client-server/README | 2 +- contrib/examples/ncat-client-server/client.sh | 4 ++-- contrib/external-tests/go/main.go | 2 +- contrib/external-tests/haskell/src/Main.hs | 2 +- contrib/external-tests/rust/src/main.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'contrib') diff --git a/contrib/examples/nat-hole-punching/nat-punch-client.c b/contrib/examples/nat-hole-punching/nat-punch-client.c index 65f3249..aa00d35 100644 --- a/contrib/examples/nat-hole-punching/nat-punch-client.c +++ b/contrib/examples/nat-hole-punching/nat-punch-client.c @@ -140,7 +140,7 @@ int main(int argc, char *argv[]) const char *server = argv[1], *interface = argv[2]; if (argc < 3) { - fprintf(stderr, "Usage: %s SERVER WIREGUARD_INTERFACE\nExample:\n %s demo.wireguard.io wg0\n", argv[0], argv[0]); + fprintf(stderr, "Usage: %s SERVER WIREGUARD_INTERFACE\nExample:\n %s demo.wireguard.com wg0\n", argv[0], argv[0]); return EINVAL; } diff --git a/contrib/examples/ncat-client-server/README b/contrib/examples/ncat-client-server/README index f584829..0c0667a 100644 --- a/contrib/examples/ncat-client-server/README +++ b/contrib/examples/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. Disclaimer: - 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/examples/ncat-client-server/client.sh b/contrib/examples/ncat-client-server/client.sh index b49a05e..1d30f49 100755 --- a/contrib/examples/ncat-client-server/client.sh +++ b/contrib/examples/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 0.0.0.0/0 endpoint "demo.wireguard.io:$server_port" persistent-keepalive 25 +wg set wg0 private-key /tmp/wg_private_key peer "$server_pubkey" allowed-ips 0.0.0.0/0 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 diff --git a/contrib/external-tests/go/main.go b/contrib/external-tests/go/main.go index e3627f3..9b60636 100644 --- a/contrib/external-tests/go/main.go +++ b/contrib/external-tests/go/main.go @@ -51,7 +51,7 @@ func main() { StaticKeypair: noise.DHKey{Private: ourPrivate, Public: ourPublic}, PeerStatic: theirPublic, }) - conn, err := net.Dial("udp", "demo.wireguard.io:12913") + conn, err := net.Dial("udp", "demo.wireguard.com:12913") if err != nil { log.Fatalf("error dialing udp socket: %s", err) } diff --git a/contrib/external-tests/haskell/src/Main.hs b/contrib/external-tests/haskell/src/Main.hs index b0b7503..7863829 100644 --- a/contrib/external-tests/haskell/src/Main.hs +++ b/contrib/external-tests/haskell/src/Main.hs @@ -57,7 +57,7 @@ unsafeMessage write mpsk msg ns = case operation msg ns of main :: IO () main = do - let ip = "demo.wireguard.io" + let ip = "demo.wireguard.com" port = "12913" myKeyB64 = "WAmgVYXkbT2bCtdcDwolI88/iVi/aV3/PHcUBTQSYmo=" -- private key serverKeyB64 = "qRCwZSKInrMAq5sepfCdaCsRJaoLe5jhtzfiw7CjbwM=" -- public key diff --git a/contrib/external-tests/rust/src/main.rs b/contrib/external-tests/rust/src/main.rs index 9fb0f5a..fdd220e 100644 --- a/contrib/external-tests/rust/src/main.rs +++ b/contrib/external-tests/rust/src/main.rs @@ -17,7 +17,7 @@ use pnet::packet::icmp::{MutableIcmpPacket, IcmpTypes, echo_reply, echo_request, use std::net::*; use std::str::FromStr; -static TEST_SERVER: &'static str = "demo.wireguard.io:12913"; +static TEST_SERVER: &'static str = "demo.wireguard.com:12913"; fn memcpy(out: &mut [u8], data: &[u8]) { out[..data.len()].copy_from_slice(data); -- cgit v1.2.3-59-g8ed1b