Fix pointopoint->peer for iproute.
This commit is contained in:
parent
12a91636f4
commit
346148ceb8
@ -118,7 +118,12 @@ _add_address()
|
|||||||
set -- "${one}/$(_netmask2cidr "${three}")" "$@"
|
set -- "${one}/$(_netmask2cidr "${three}")" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#config=( "${config[@]//pointopoint/peer}" )
|
# tunnel keyword is 'peer' in iproute2, but 'pointopoint' in ifconfig.
|
||||||
|
if [ "$2" = "pointopoint" ]; then
|
||||||
|
local one="$1"
|
||||||
|
shift; shift
|
||||||
|
set -- "${one}" "peer" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
# Always scope lo addresses as host unless specified otherwise
|
# Always scope lo addresses as host unless specified otherwise
|
||||||
if [ "${IFACE}" = "lo" ]; then
|
if [ "${IFACE}" = "lo" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user