diff --git a/mlvpn/files/etc/init.d/mlvpn b/mlvpn/files/etc/init.d/mlvpn index a1e1630ae..f85e5baa6 100755 --- a/mlvpn/files/etc/init.d/mlvpn +++ b/mlvpn/files/etc/init.d/mlvpn @@ -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