wg-quick: darwin: add multiple IP addresses

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-05-27 05:22:55 +02:00
parent 19ce650fb6
commit df6c69e98c
1 changed files with 2 additions and 2 deletions

View File

@ -148,9 +148,9 @@ up_if() {
add_addr() {
if [[ $1 == *:* ]]; then
cmd ifconfig "$REAL_INTERFACE" inet6 "$1"
cmd ifconfig "$REAL_INTERFACE" inet6 "$1" alias
else
cmd ifconfig "$REAL_INTERFACE" inet "$1" "${1%%/*}"
cmd ifconfig "$REAL_INTERFACE" inet "$1" "${1%%/*}" alias
fi
}