luci-app-openvpn: add OpenVPN option disable-dco
authorMartin Schiller <ms@dev.tdt.de>
Wed, 31 Jan 2024 07:40:35 +0000 (08:40 +0100)
committerPaul Donald <newtwen@gmail.com>
Thu, 8 Feb 2024 13:41:24 +0000 (14:41 +0100)
You maybe want to disable the DCO support, so let's add this option.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
(cherry picked from commit 5b2bc99c30b80c3a706de3133a8c05f852dc08d1)

applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua

index b69f86b8f5e05f71bfecb9339012413350627ecd..a7eefdf5fe5c42c4f486835e442c95f95e1fdd5c 100644 (file)
@@ -371,6 +371,10 @@ local knownParams = {
                        { "net30", "p2p", "subnet" },
                        translate("'net30', 'p2p', or 'subnet'"),
                        {dev_type="tun" } },
+               { Flag,
+                       "disable_dco",
+                       0,
+                       translate("Disable Data Channel Offloading (DCO) support") },
        } },
 
        { "vpn", translate("VPN"), {