mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix MLVPN, this time aggregation is working
This commit is contained in:
parent
4c722c3e8a
commit
1ad098eb51
1 changed files with 5 additions and 0 deletions
|
@ -22,11 +22,16 @@ interface_multipath_settings() {
|
||||||
id=$(($id+1))
|
id=$(($id+1))
|
||||||
config_get mode "$config" multipath "off"
|
config_get mode "$config" multipath "off"
|
||||||
[ "$mode" = "off" ] && return 1
|
[ "$mode" = "off" ] && return 1
|
||||||
|
config_get ifname "$config" ifname
|
||||||
|
[ -z "$ifname" ] && ifname=$(ifstatus "$config" | jsonfilter -q -e '@["l3_device"]')
|
||||||
|
[ -z "$ifname" ] && return 1
|
||||||
count=$(($count+1))
|
count=$(($count+1))
|
||||||
port=$((firstport+count))
|
port=$((firstport+count))
|
||||||
cat >> /tmp/etc/${interface_name}.conf <<-EOF
|
cat >> /tmp/etc/${interface_name}.conf <<-EOF
|
||||||
|
|
||||||
[${id}]
|
[${id}]
|
||||||
|
bindhost = "${ifname}"
|
||||||
|
bindport = "${port}"
|
||||||
remotehost = "${host}"
|
remotehost = "${host}"
|
||||||
remoteport = "${port}"
|
remoteport = "${port}"
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue