mirror of
https://github.com/kenzok8/small-package
synced 2025-01-05 11:36:47 +08:00
update 2024-12-20 04:21:37
This commit is contained in:
parent
a7b6ff9335
commit
d58fc0c7d7
@ -91,9 +91,6 @@ else ()
|
||||
message(STATUS "AddressSanitizer is disabled.")
|
||||
endif ()
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-gc-sections")
|
||||
|
||||
if (UA2F_CUSTOM_USER_AGENT)
|
||||
if (NOT UA2F_USER_AGENT_STRING)
|
||||
message(FATAL_ERROR "UA2F_USER_AGENT_STRING is not set")
|
||||
@ -154,7 +151,6 @@ if (UA2F_BUILD_TESTS)
|
||||
test/cache_test.cc
|
||||
src/util.c
|
||||
src/cache.c
|
||||
src/cli.c
|
||||
)
|
||||
target_link_libraries(
|
||||
ua2f_test
|
||||
|
@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=UA2F
|
||||
PKG_VERSION:=4.9.5
|
||||
PKG_VERSION:=4.9.6
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_LICENSE:=GPL-3.0-only
|
||||
|
@ -1,12 +1,11 @@
|
||||
#include "cli.h"
|
||||
#include "handler.h"
|
||||
#include "statistics.h"
|
||||
#include "third/nfqueue-mnl.h"
|
||||
#include "util.h"
|
||||
|
||||
#ifdef UA2F_ENABLE_UCI
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "third/nfqueue-mnl.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <signal.h>
|
||||
|
@ -1066,7 +1066,7 @@ end
|
||||
function get_version()
|
||||
local version = sys.exec("opkg list-installed luci-app-passwall 2>/dev/null | awk '{print $3}'")
|
||||
if not version or #version == 0 then
|
||||
version = sys.exec("apk info luci-app-passwall 2>/dev/null | awk 'NR == 1 {print $1}' | cut -d'-' -f4-")
|
||||
version = sys.exec("apk info -L luci-app-passwall 2>/dev/null | awk 'NR == 1 {print $1}' | cut -d'-' -f4-")
|
||||
end
|
||||
return version or ""
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user