summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-27 05:22:55 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-27 05:22:55 +0200
commitd3afd86fa54c3a98a44f6d15e548362105fe3fe4 (patch)
treec48bf30f27f9f78dd2ea80c7438fd54346fd47fe
parentwg-quick: determine IPs when saving interface (diff)
downloadwireguard-monolithic-historical-d3afd86fa54c3a98a44f6d15e548362105fe3fe4.tar.xz
wireguard-monolithic-historical-d3afd86fa54c3a98a44f6d15e548362105fe3fe4.zip
wg-quick: darwin: add multiple IP addresses
-rwxr-xr-xsrc/tools/wg-quick/darwin.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/wg-quick/darwin.bash b/src/tools/wg-quick/darwin.bash
index 18b92ea..81139e6 100755
--- a/src/tools/wg-quick/darwin.bash
+++ b/src/tools/wg-quick/darwin.bash
@@ -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
}