diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-27 05:22:55 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-27 05:22:55 +0200 |
commit | d3afd86fa54c3a98a44f6d15e548362105fe3fe4 (patch) | |
tree | c48bf30f27f9f78dd2ea80c7438fd54346fd47fe /src/tools/wg-quick | |
parent | wg-quick: determine IPs when saving interface (diff) | |
download | wireguard-monolithic-historical-d3afd86fa54c3a98a44f6d15e548362105fe3fe4.tar.xz wireguard-monolithic-historical-d3afd86fa54c3a98a44f6d15e548362105fe3fe4.zip |
wg-quick: darwin: add multiple IP addresses
Diffstat (limited to 'src/tools/wg-quick')
-rwxr-xr-x | src/tools/wg-quick/darwin.bash | 4 |
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 } |