mirror of
https://github.com/openwrt/luci.git
synced 2025-12-27 10:10:25 +04:00
This commit effectively reverts the change made with907b4222f7("luci-mod-network: don't hide "Device" on protocol change"). Floating tunnel protocols such as 6in4, plain PPP over modem device, VPNC etc. do not have any layer 2 device at all, for such protocols the device selector should be hidden. Also swap back the incorrect option order introduced with commitb7f3cf66ca("luci-mod-network: drop support for *adding* legacy bridges"). Since device depends on proto, it should come after the protocol selection, not before. Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commitfc12933670)