wg-quick: darwin: add multiple IP addresses
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
19ce650fb6
commit
df6c69e98c
1 changed files with 2 additions and 2 deletions
|
@ -148,9 +148,9 @@ up_if() {
|
||||||
|
|
||||||
add_addr() {
|
add_addr() {
|
||||||
if [[ $1 == *:* ]]; then
|
if [[ $1 == *:* ]]; then
|
||||||
cmd ifconfig "$REAL_INTERFACE" inet6 "$1"
|
cmd ifconfig "$REAL_INTERFACE" inet6 "$1" alias
|
||||||
else
|
else
|
||||||
cmd ifconfig "$REAL_INTERFACE" inet "$1" "${1%%/*}"
|
cmd ifconfig "$REAL_INTERFACE" inet "$1" "${1%%/*}" alias
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue