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:
parent
a43f0b634e
commit
163cef8b90
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue