mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-06 23:08:07 +08:00
update 2025-06-08 20:40:57
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=UnblockNeteaseMusic
|
||||
PKG_VERSION:=0.27.9
|
||||
PKG_VERSION:=0.27.10
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/UnblockNeteaseMusic/server/tar.gz/v${PKG_VERSION}?
|
||||
PKG_HASH:=12e9a0273dc268197d4ee3a97a132c3903edc0da009b18ee44f98a141a996686
|
||||
PKG_HASH:=49fc91f83485f29c4ac0f4867ebd473778639ac3f7ec526786577a10ca189b53
|
||||
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
||||
|
||||
@@ -656,9 +656,26 @@ html_port = s:option(Value, "html_port", translate("web界面端口"),
|
||||
html_port.datatype = "range(1,65535)"
|
||||
html_port.placeholder = "11210"
|
||||
|
||||
local router_ip = luci.sys.exec("uci -q get network.lan.ipaddr"):gsub("\n", "")
|
||||
local default_api_port = api_port.default or "11211"
|
||||
api_host = s:option(Value, "api_host", translate("默认API服务器URL"),
|
||||
translate("API 服务器的 URL,用于 web 前端连接。( --api-host 参数)"))
|
||||
api_host.placeholder = "https://config-server.easytier.cn"
|
||||
translate("API 服务器的 URL,用于 web 前端连接。( --api-host 参数)<br>填写示例 http://当前设备IP或解析的域名:API端口"))
|
||||
api_host.placeholder = "http://" .. router_ip .. ":" .. default_api_port
|
||||
api_host.default = "http://" .. router_ip .. ":" .. default_api_port
|
||||
api_host.validate = function(self, value, section)
|
||||
local port_val = api_port:formvalue(section) or default_api_port
|
||||
if not port_val or port_val == "" then
|
||||
port_val = default_api_port
|
||||
end
|
||||
local port_in_api_host = string.match(value, ":(%d+)$")
|
||||
if port_in_api_host ~= port_val then
|
||||
local new_value = string.gsub(value, ":%d+$", "")
|
||||
new_value = new_value .. ":" .. port_val
|
||||
return new_value
|
||||
end
|
||||
return value
|
||||
end
|
||||
|
||||
|
||||
weblog = s:option(ListValue, "weblog", translate("程序日志"),
|
||||
translate("运行日志在/tmp/easytierweb.log,可在上方日志查看<br>若启动失败,请前往 状态- 系统日志 查看具体启动失败日志<br>详细程度:警告<信息<调试<跟踪"))
|
||||
|
||||
@@ -21,13 +21,13 @@ define Download/geoip
|
||||
HASH:=58bf8f086473cad7df77f032815eb8d96bbd4a1aaef84c4f7da18cf1a3bb947a
|
||||
endef
|
||||
|
||||
GEOSITE_VER:=20250605152911
|
||||
GEOSITE_VER:=20250608120644
|
||||
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
||||
define Download/geosite
|
||||
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
||||
URL_FILE:=dlc.dat
|
||||
FILE:=$(GEOSITE_FILE)
|
||||
HASH:=618d9147337b84a3a47313aca553ba9880bdee6369ad887865f320ff3bec53c3
|
||||
HASH:=67ededbc0cb18f93415e2e003cb45cb04fc32ba4a829f7d18074d3bdd88ab629
|
||||
endef
|
||||
|
||||
GEOSITE_IRAN_VER:=202506020042
|
||||
|
||||
Reference in New Issue
Block a user