aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-03-23 12:28:22 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-03-23 12:29:33 -0600
commit163cef8b9013898bbe0d0b8d4afd25264e999858 (patch)
tree5d37355d9391480eff3059589f73040f755a6140
parentwg-quick: freebsd: check for socket using -S, not -f (diff)
downloadwireguard-tools-master.tar.xz
wireguard-tools-master.zip
wg-quick: freebsd: do not assume point-to-point interface flagHEADmaster
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rwxr-xr-xsrc/wg-quick/freebsd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wg-quick/freebsd.bash b/src/wg-quick/freebsd.bash
index 6211b7a..e00f1e1 100755
--- a/src/wg-quick/freebsd.bash
+++ b/src/wg-quick/freebsd.bash
@@ -190,7 +190,7 @@ add_addr() {
if [[ $1 == *:* ]]; then
cmd ifconfig "$INTERFACE" inet6 "$1" alias
else
- cmd ifconfig "$INTERFACE" inet "$1" "${1%%/*}" alias
+ cmd ifconfig "$INTERFACE" inet "$1" alias
fi
}