diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-03-23 12:28:22 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-03-23 12:29:33 -0600 |
commit | 163cef8b9013898bbe0d0b8d4afd25264e999858 (patch) | |
tree | 5d37355d9391480eff3059589f73040f755a6140 | |
parent | wg-quick: freebsd: check for socket using -S, not -f (diff) | |
download | wireguard-tools-163cef8b9013898bbe0d0b8d4afd25264e999858.tar.xz wireguard-tools-163cef8b9013898bbe0d0b8d4afd25264e999858.zip |
wg-quick: freebsd: do not assume point-to-point interface flag
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rwxr-xr-x | src/wg-quick/freebsd.bash | 2 |
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 } |