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
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue