From 67b62e53eff5842f7c73e3ebfcba42692c144524 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 15 Sep 2020 15:21:30 +0200 Subject: [PATCH] Add PPPoE proto --- .../luasrc/controller/openmptcprouter.lua | 12 +++++ .../luasrc/view/openmptcprouter/wizard.htm | 54 +++++++++++++++++-- 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua index 4f456cf15..a40979a05 100644 --- a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua +++ b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua @@ -222,6 +222,11 @@ function wizard_add() local gateway = luci.http.formvalue("cbid.network.%s.gateway" % intf) or "" local apn = luci.http.formvalue("cbid.network.%s.apn" % intf) or "" local pincode = luci.http.formvalue("cbid.network.%s.pincode" % intf) or "" + local delay = luci.http.formvalue("cbid.network.%s.delay" % intf) or "" + local username = luci.http.formvalue("cbid.network.%s.username" % intf) or "" + local password = luci.http.formvalue("cbid.network.%s.password" % intf) or "" + local auth = luci.http.formvalue("cbid.network.%s.auth" % intf) or "" + local mode = luci.http.formvalue("cbid.network.%s.mode" % intf) or "" local sqmenabled = luci.http.formvalue("cbid.sqm.%s.enabled" % intf) or "0" if typeintf == "normal" then typeintf = "" @@ -240,7 +245,14 @@ function wizard_add() end ucic:set("network",intf,"apn",apn) ucic:set("network",intf,"pincode",pincode) + ucic:set("network",intf,"delay",delay) + ucic:set("network",intf,"username",username) + ucic:set("network",intf,"password",password) + ucic:set("network",intf,"auth",auth) + ucic:set("network",intf,"mode",mode) ucic:set("network",intf,"label",label) + ucic:set("network",intf,"defaultroute",0) + ucic:set("network",intf,"peerdns",0) if ipaddr ~= "" then ucic:set("network",intf,"ipaddr",ipaddr) ucic:set("network",intf,"netmask",netmask) diff --git a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm index 5c898ae6e..6a46def1a 100644 --- a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm +++ b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm @@ -69,7 +69,7 @@ end
" data-optional="false">
- <%:Server IP will be set for ShadowSocks, Glorytun, OpenVPN and MLVPN%> + <%:Server IP will be set for proxy and VPN%>
@@ -413,6 +413,7 @@ end + @@ -561,6 +562,49 @@ end "> +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ "> +
+
+
+ +
+ "> +
+
+
+ +
+ "> +
+
<% local download = "0" @@ -577,7 +621,7 @@ end end end %> -
+
checked<% end %> /> @@ -587,7 +631,7 @@ end
-
+
checked<% end %> /> @@ -597,7 +641,7 @@ end
-
+
@@ -613,7 +657,7 @@ end -->
-
+