wg-quick: freebsd: do not assume point-to-point interface flag

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2021-03-23 12:28:22 -06:00
parent a43f0b634e
commit 163cef8b90
1 changed files with 1 additions and 1 deletions

View File

@ -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
}