wg-quick: freebsd: configure as p2p link
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
df6c69e98c
commit
d532074ef5
|
@ -146,9 +146,11 @@ up_if() {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_addr() {
|
add_addr() {
|
||||||
local family=inet
|
if [[ $1 == *:* ]]; then
|
||||||
[[ $1 == *:* ]] && family=inet6
|
cmd ifconfig "$INTERFACE" inet6 "$1" alias
|
||||||
cmd ifconfig "$INTERFACE" "$family" "$1" alias
|
else
|
||||||
|
cmd ifconfig "$INTERFACE" inet "$1" "${1%%/*}" alias
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
set_mtu() {
|
set_mtu() {
|
||||||
|
|
Loading…
Reference in New Issue