update 04-01 20:21
This commit is contained in:
parent
c13965f705
commit
0dcddb6223
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=aliyundrive-webdav
|
PKG_NAME:=aliyundrive-webdav
|
||||||
PKG_VERSION:=1.3.0
|
PKG_VERSION:=1.3.1
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-aliyundrive-webdav
|
PKG_NAME:=luci-app-aliyundrive-webdav
|
||||||
PKG_VERSION:=1.3.0
|
PKG_VERSION:=1.3.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_PO_VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
|
PKG_PO_VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-passwall
|
PKG_NAME:=luci-app-passwall
|
||||||
PKG_VERSION:=4.52
|
PKG_VERSION:=4.52
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_Transparent_Proxy \
|
CONFIG_PACKAGE_$(PKG_NAME)_Transparent_Proxy \
|
||||||
|
|
|
@ -38,6 +38,8 @@ local config = {
|
||||||
insecure = (node.tls_allowInsecure == "1") and true or false,
|
insecure = (node.tls_allowInsecure == "1") and true or false,
|
||||||
up_mbps = tonumber(node.hysteria_up_mbps) or 10,
|
up_mbps = tonumber(node.hysteria_up_mbps) or 10,
|
||||||
down_mbps = tonumber(node.hysteria_down_mbps) or 50,
|
down_mbps = tonumber(node.hysteria_down_mbps) or 50,
|
||||||
|
retry = -1,
|
||||||
|
retry_interval = 5,
|
||||||
recv_window_conn = (node.hysteria_recv_window_conn) and tonumber(node.hysteria_recv_window_conn) or nil,
|
recv_window_conn = (node.hysteria_recv_window_conn) and tonumber(node.hysteria_recv_window_conn) or nil,
|
||||||
recv_window = (node.hysteria_recv_window) and tonumber(node.hysteria_recv_window) or nil,
|
recv_window = (node.hysteria_recv_window) and tonumber(node.hysteria_recv_window) or nil,
|
||||||
disable_mtu_discovery = (node.hysteria_disable_mtu_discovery) and true or false,
|
disable_mtu_discovery = (node.hysteria_disable_mtu_discovery) and true or false,
|
||||||
|
|
|
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-passwall2
|
PKG_NAME:=luci-app-passwall2
|
||||||
PKG_VERSION:=1.2
|
PKG_VERSION:=1.2
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_Transparent_Proxy \
|
CONFIG_PACKAGE_$(PKG_NAME)_Transparent_Proxy \
|
||||||
|
|
|
@ -38,6 +38,8 @@ local config = {
|
||||||
insecure = (node.tls_allowInsecure == "1") and true or false,
|
insecure = (node.tls_allowInsecure == "1") and true or false,
|
||||||
up_mbps = tonumber(node.hysteria_up_mbps) or 10,
|
up_mbps = tonumber(node.hysteria_up_mbps) or 10,
|
||||||
down_mbps = tonumber(node.hysteria_down_mbps) or 50,
|
down_mbps = tonumber(node.hysteria_down_mbps) or 50,
|
||||||
|
retry = -1,
|
||||||
|
retry_interval = 5,
|
||||||
recv_window_conn = (node.hysteria_recv_window_conn) and tonumber(node.hysteria_recv_window_conn) or nil,
|
recv_window_conn = (node.hysteria_recv_window_conn) and tonumber(node.hysteria_recv_window_conn) or nil,
|
||||||
recv_window = (node.hysteria_recv_window) and tonumber(node.hysteria_recv_window) or nil,
|
recv_window = (node.hysteria_recv_window) and tonumber(node.hysteria_recv_window) or nil,
|
||||||
disable_mtu_discovery = (node.hysteria_disable_mtu_discovery) and true or false,
|
disable_mtu_discovery = (node.hysteria_disable_mtu_discovery) and true or false,
|
||||||
|
|
|
@ -5,11 +5,19 @@
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=luci-app-socat
|
||||||
|
PKG_VERSION:=20200824
|
||||||
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Lienol <lawlienol@gmail.com>
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI support for Socat
|
LUCI_TITLE:=LuCI support for Socat
|
||||||
LUCI_DEPENDS:=+socat
|
LUCI_DEPENDS:=+socat
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
PKG_RELEASE:=3
|
|
||||||
PKG_DATE:=20200824
|
define Package/$(PKG_NAME)/conffiles
|
||||||
|
/etc/config/socat
|
||||||
|
endef
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,21 @@
|
||||||
-- Copyright 2020 Lienol <lawlienol@gmail.com>
|
-- Copyright 2020 Lienol <lawlienol@gmail.com>
|
||||||
module("luci.controller.socat", package.seeall)
|
module("luci.controller.socat", package.seeall)
|
||||||
local http = require "luci.http"
|
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
if not nixio.fs.access("/etc/config/socat") then return end
|
if not nixio.fs.access("/etc/config/socat") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
entry({"admin", "network", "socat"}, cbi("socat/index"), _("Socat"), 100)
|
entry({"admin", "network", "socat"}, alias("admin", "network", "socat", "index"), _("Socat"), 100).dependent = true
|
||||||
entry({"admin", "network", "socat", "config"}, cbi("socat/config")).leaf = true
|
entry({"admin", "network", "socat", "index"}, cbi("socat/index")).leaf = true
|
||||||
entry({"admin", "network", "socat", "status"}, call("status")).leaf = true
|
entry({"admin", "network", "socat", "config"}, cbi("socat/config")).leaf = true
|
||||||
|
entry({"admin", "network", "socat", "status"}, call("act_status")).leaf = true
|
||||||
end
|
end
|
||||||
|
|
||||||
function status()
|
function act_status()
|
||||||
local e = {}
|
local e = {}
|
||||||
e.index = luci.http.formvalue("index")
|
e.index = luci.http.formvalue("index")
|
||||||
e.status = luci.sys.call(string.format("ps -w | grep -v 'grep' | grep '/var/etc/socat/%s' >/dev/null", luci.http.formvalue("id"))) == 0
|
e.status = luci.sys.call(string.format("ps -w | grep -v 'grep' | grep '/var/etc/socat/%s' >/dev/null", luci.http.formvalue("id"))) == 0
|
||||||
http.prepare_content("application/json")
|
luci.http.prepare_content("application/json")
|
||||||
http.write_json(e)
|
luci.http.write_json(e)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
local d = require "luci.dispatcher"
|
local d = require "luci.dispatcher"
|
||||||
local e = luci.model.uci.cursor()
|
local e = luci.model.uci.cursor()
|
||||||
|
|
||||||
m = Map("socat", translate("Socat"), translate("Socat is a versatile networking tool named after 'Socket CAT', which can be regarded as an N-fold enhanced version of NetCat"))
|
m = Map("socat")
|
||||||
|
m.title = translate("Socat")
|
||||||
|
m.description = translate("Socat is a versatile networking tool named after 'Socket CAT', which can be regarded as an N-fold enhanced version of NetCat")
|
||||||
|
|
||||||
s = m:section(NamedSection, "global", "global")
|
s = m:section(NamedSection, "global", "global")
|
||||||
s.anonymous = true
|
s.anonymous = true
|
||||||
|
@ -16,20 +18,20 @@ s.addremove = true
|
||||||
s.template = "cbi/tblsection"
|
s.template = "cbi/tblsection"
|
||||||
s.extedit = d.build_url("admin", "network", "socat", "config", "%s")
|
s.extedit = d.build_url("admin", "network", "socat", "config", "%s")
|
||||||
function s.filter(e, t)
|
function s.filter(e, t)
|
||||||
if m:get(t, "protocol") == "port_forwards" then
|
if m:get(t, "protocol") == "port_forwards" then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function s.create(e, t)
|
function s.create(e, t)
|
||||||
local uuid = string.gsub(luci.sys.exec("echo -n $(cat /proc/sys/kernel/random/uuid)"), "-", "")
|
local uuid = string.gsub(luci.sys.exec("echo -n $(cat /proc/sys/kernel/random/uuid)"), "-", "")
|
||||||
t = uuid
|
t = uuid
|
||||||
TypedSection.create(e, t)
|
TypedSection.create(e, t)
|
||||||
luci.http.redirect(e.extedit:format(t))
|
luci.http.redirect(e.extedit:format(t))
|
||||||
end
|
end
|
||||||
function s.remove(e, t)
|
function s.remove(e, t)
|
||||||
e.map.proceed = true
|
e.map.proceed = true
|
||||||
e.map:del(t)
|
e.map:del(t)
|
||||||
luci.http.redirect(d.build_url("admin", "network", "socat"))
|
luci.http.redirect(d.build_url("admin", "network", "socat"))
|
||||||
end
|
end
|
||||||
|
|
||||||
o = s:option(Flag, "enable", translate("Enable"))
|
o = s:option(Flag, "enable", translate("Enable"))
|
||||||
|
@ -44,23 +46,23 @@ o = s:option(DummyValue, "remarks", translate("Remarks"))
|
||||||
|
|
||||||
o = s:option(DummyValue, "family", translate("Listen Protocol"))
|
o = s:option(DummyValue, "family", translate("Listen Protocol"))
|
||||||
o.cfgvalue = function(t, n)
|
o.cfgvalue = function(t, n)
|
||||||
local listen = Value.cfgvalue(t, n) or ""
|
local listen = Value.cfgvalue(t, n) or ""
|
||||||
local protocol = (m:get(n, "proto") or ""):upper()
|
local protocol = (m:get(n, "proto") or ""):upper()
|
||||||
if listen == "" then
|
if listen == "" then
|
||||||
return protocol
|
return protocol
|
||||||
else
|
else
|
||||||
return "IPv" .. listen .. "-" .. protocol
|
return "IPv" .. listen .. "-" .. protocol
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
o = s:option(DummyValue, "listen_port", translate("Listen port"))
|
o = s:option(DummyValue, "listen_port", translate("Listen port"))
|
||||||
|
|
||||||
o = s:option(DummyValue, "dest_proto", translate("Destination Protocol"))
|
o = s:option(DummyValue, "dest_proto", translate("Destination Protocol"))
|
||||||
o.cfgvalue = function(t, n)
|
o.cfgvalue = function(t, n)
|
||||||
local listen = Value.cfgvalue(t, n)
|
local listen = Value.cfgvalue(t, n)
|
||||||
local protocol = listen:sub(0, #listen - 1):upper()
|
local protocol = listen:sub(0, #listen - 1):upper()
|
||||||
local ip_type = "IPv" .. listen:sub(#listen)
|
local ip_type = "IPv" .. listen:sub(#listen)
|
||||||
return ip_type .. "-" .. protocol
|
return ip_type .. "-" .. protocol
|
||||||
end
|
end
|
||||||
|
|
||||||
o = s:option(DummyValue, "dest_ip", translate("Destination address"))
|
o = s:option(DummyValue, "dest_ip", translate("Destination address"))
|
||||||
|
@ -72,5 +74,5 @@ o.default = "1"
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
|
|
||||||
m:append(Template("socat/list_status"))
|
m:append(Template("socat/list_status"))
|
||||||
return m
|
|
||||||
|
|
||||||
|
return m
|
||||||
|
|
|
@ -16,4 +16,4 @@
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<%+cbi/valueheader%>
|
<%+cbi/valueheader%>
|
||||||
<font class="_status" hint="<%=self:cfgvalue(section)%>">--</font>
|
<font class="_status" hint="<%=self:cfgvalue(section)%>">--</font>
|
||||||
<%+cbi/valuefooter%>
|
<%+cbi/valuefooter%>
|
||||||
|
|
|
@ -116,4 +116,4 @@ stop() {
|
||||||
restart() {
|
restart() {
|
||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=natflow
|
PKG_NAME:=natflow
|
||||||
PKG_VERSION:=20220407
|
PKG_VERSION:=20220408
|
||||||
|
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/ptpt52/natflow/tar.gz/$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/ptpt52/natflow/tar.gz/$(PKG_VERSION)?
|
||||||
PKG_HASH:=skip
|
PKG_HASH:=skip
|
||||||
|
|
Loading…
Reference in New Issue