1
0
Fork 0
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:
Ycarus 2018-07-01 20:50:03 +02:00
parent 4c722c3e8a
commit 1ad098eb51

View file

@ -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