mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-27 08:31:44 +08:00
Compare commits
2 Commits
b36a44f0ee
...
a9c2d0ea56
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9c2d0ea56 | ||
|
|
a61a4c5e0a |
@ -1428,8 +1428,8 @@ local function processData(szType, content, add_mode, group, sub_cfg)
|
|||||||
result.tls_pinSHA256 = params.pcs or params.pinsha256
|
result.tls_pinSHA256 = params.pcs or params.pinsha256
|
||||||
result.tls_CertByName = params.vcn
|
result.tls_CertByName = params.vcn
|
||||||
result.tls_allowInsecure = params.allowinsecure or params.insecure
|
result.tls_allowInsecure = params.allowinsecure or params.insecure
|
||||||
result.hysteria2_up_mbps = params.upmbps or sub_hy_up_mbps
|
result.hysteria2_up_mbps = params.upmbps or (sub_cfg and sub_hy_up_mbps or nil)
|
||||||
result.hysteria2_down_mbps = params.downmbps or sub_hy_down_mbps
|
result.hysteria2_down_mbps = params.downmbps or (sub_cfg and sub_hy_down_mbps or nil)
|
||||||
result.hysteria2_hop = params.mport
|
result.hysteria2_hop = params.mport
|
||||||
if params["obfs-password"] or params["obfs_password"] then
|
if params["obfs-password"] or params["obfs_password"] then
|
||||||
result.hysteria2_obfs_type = params.obfs or "salamander"
|
result.hysteria2_obfs_type = params.obfs or "salamander"
|
||||||
|
|||||||
@ -293,7 +293,7 @@ if is_finded("xray") then
|
|||||||
o.datatype = "or(uinteger,portrange)"
|
o.datatype = "or(uinteger,portrange)"
|
||||||
o.default = "100-200"
|
o.default = "100-200"
|
||||||
else
|
else
|
||||||
o.default = "3-6-8"
|
o.default = "3-6"
|
||||||
end
|
end
|
||||||
o:depends("fragment", true)
|
o:depends("fragment", true)
|
||||||
|
|
||||||
|
|||||||
@ -529,6 +529,7 @@ o:value("https://www.google.com/generate_204", "Google")
|
|||||||
o:value("https://www.youtube.com/generate_204", "YouTube")
|
o:value("https://www.youtube.com/generate_204", "YouTube")
|
||||||
o:value("https://connect.rom.miui.com/generate_204", "MIUI (CN)")
|
o:value("https://connect.rom.miui.com/generate_204", "MIUI (CN)")
|
||||||
o:value("https://connectivitycheck.platform.hicloud.com/generate_204", "HiCloud (CN)")
|
o:value("https://connectivitycheck.platform.hicloud.com/generate_204", "HiCloud (CN)")
|
||||||
|
o:value("https://wifi.vivo.com.cn/generate_204", "VIVO (CN)")
|
||||||
o.default = o.keylist[3]
|
o.default = o.keylist[3]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -315,13 +315,13 @@ link_mihomo_geodata() {
|
|||||||
ln -sf /usr/share/v2ray/geosite.dat "$workdir/geosite.dat"
|
ln -sf /usr/share/v2ray/geosite.dat "$workdir/geosite.dat"
|
||||||
else
|
else
|
||||||
[ -s /etc/openclash/GeoSite.dat ] && ln -sf /etc/openclash/GeoSite.dat "$workdir/GeoSite.dat"
|
[ -s /etc/openclash/GeoSite.dat ] && ln -sf /etc/openclash/GeoSite.dat "$workdir/GeoSite.dat"
|
||||||
[ -s /etc/openclash/geosite.dat ] && ln -sf /etc/openclash/geosite.dat "$workdir/geosite.dat"
|
[ -s /etc/openclash/GeoSite.dat ] && ln -sf /etc/openclash/GeoSite.dat "$workdir/geosite.dat"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s /usr/share/v2ray/geoip.dat ]; then
|
if [ -s /usr/share/v2ray/geoip.dat ]; then
|
||||||
ln -sf /usr/share/v2ray/geoip.dat "$workdir/geoip.dat"
|
ln -sf /usr/share/v2ray/geoip.dat "$workdir/geoip.dat"
|
||||||
else
|
else
|
||||||
[ -s /etc/openclash/geoip.dat ] && ln -sf /etc/openclash/geoip.dat "$workdir/geoip.dat"
|
[ -s /etc/openclash/GeoIP.dat ] && ln -sf /etc/openclash/GeoIP.dat "$workdir/geoip.dat"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user