mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +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))
|
||||
config_get mode "$config" multipath "off"
|
||||
[ "$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))
|
||||
port=$((firstport+count))
|
||||
cat >> /tmp/etc/${interface_name}.conf <<-EOF
|
||||
|
||||
[${id}]
|
||||
bindhost = "${ifname}"
|
||||
bindport = "${port}"
|
||||
remotehost = "${host}"
|
||||
remoteport = "${port}"
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue