update 2024-06-26 14:14:22

This commit is contained in:
kenzok8 2024-06-26 14:14:22 +08:00
parent 1509dab287
commit d5b090bb4a
2 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ function rules(proxy, bridge, manual_tproxy, extra_inbound, fakedns) {
let direct_rules = [];
if (geoip_existence) {
if (proxy["geoip_direct_code_list"] != null) {
const geoip_direct_code_list = map(proxy["geoip_direct_code_list"] || [], v => "geoip:" + v);
const geoip_direct_code_list = map(proxy["geoip_direct_code_list"] || [], v => index(v, ":") > 0 ? v : `geoip:${v}`);
if (length(geoip_direct_code_list) > 0) {
push(direct_rules, {
type: "field",
@ -134,7 +134,7 @@ function rules(proxy, bridge, manual_tproxy, extra_inbound, fakedns) {
ip: geoip_direct_code_list
});
}
const geoip_direct_code_list_v6 = map(proxy["geoip_direct_code_list_v6"] || [], v => "geoip:" + v);
const geoip_direct_code_list_v6 = map(proxy["geoip_direct_code_list_v6"] || [], v => index(v, ":") > 0 ? v : `geoip:${v}`);
if (length(geoip_direct_code_list_v6) > 0) {
push(direct_rules, {
type: "field",

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=lucky
PKG_VERSION:=2.8.3
PKG_VERSION:=2.10.5
PKG_RELEASE:=1
PKGARCH:=all
@ -45,7 +45,7 @@ PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=GDY666 <gdy666@foxmail.com>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_HASH:=980073f26732d33c1f95a5503f5472a3822708bf38632adb55ac79adadc8b5e9
PKG_HASH:=153123213e98c010529fd2767959da8c53432f68f4ab896cf34de5448d8756b4
include $(INCLUDE_DIR)/package.mk