aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/ncat-client-server
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-18 06:22:00 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-21 01:00:07 +0100
commit16a6972bb60d3aded954945e8b8c8cf4e002b73c (patch)
treea72d27a3d5ea30b00fd559da6f9c9210b2d5a526 /contrib/ncat-client-server
parentwg: chill modern gcc out (diff)
downloadwireguard-tools-16a6972bb60d3aded954945e8b8c8cf4e002b73c.tar.xz
wireguard-tools-16a6972bb60d3aded954945e8b8c8cf4e002b73c.zip
headers: cleanup notices
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'contrib/ncat-client-server')
-rwxr-xr-xcontrib/ncat-client-server/client.sh3
-rwxr-xr-xcontrib/ncat-client-server/server.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/contrib/ncat-client-server/client.sh b/contrib/ncat-client-server/client.sh
index ab9fe88..e59d9ce 100755
--- a/contrib/ncat-client-server/client.sh
+++ b/contrib/ncat-client-server/client.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+
+# Copyright (C) 2015-2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+
set -e
[[ $UID == 0 ]] || { echo "You must be root to run this."; exit 1; }
umask 077
diff --git a/contrib/ncat-client-server/server.sh b/contrib/ncat-client-server/server.sh
index e37861f..2680afd 100755
--- a/contrib/ncat-client-server/server.sh
+++ b/contrib/ncat-client-server/server.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+
+# Copyright (C) 2015-2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+
if [[ -z $NCAT_REMOTE_ADDR ]]; then
ip link del dev wg0 2>/dev/null
set -e