Compare commits

...

6 Commits

Author SHA1 Message Date
Kirill Sobakin
c0a2736bb9 Merge pull request #434 from itdoginfo/version
Use is_min_package_version to check sing-box >= 1.12.4
2026-08-18 19:04:10 +03:00
Andrey Petelin
a4aa714372 fix: Use is_min_package_version to check sing-box >= 1.12.4 and simplify version parsing 2026-08-18 20:58:42 +05:00
Kirill Sobakin
a64923db5a Merge pull request #403 from itdoginfo/argument-list-too-long
fix: reduce default chunk_size to 1000
2026-07-01 10:28:17 +03:00
Andrey Petelin
0c99dddf11 fix: reduce default chunk_size to 1000 for domain and subnet import functions 2026-07-01 12:00:56 +05:00
Kirill Sobakin
922d6d4638 Merge pull request #395 from itdoginfo/fix/list-update
fix: use service_proxy_address for GitHub proxy connectivity check
2026-06-13 13:33:48 +03:00
Andrey Petelin
34f49c392e fix: use service_proxy_address for GitHub proxy connectivity check 2026-06-13 12:21:59 +05:00
2 changed files with 6 additions and 18 deletions

View File

@@ -510,7 +510,7 @@ list_update() {
local service_proxy_address
service_proxy_address="$(get_service_proxy_address)"
if [ -n "$http_proxy_address" ]; then
if [ -n "$service_proxy_address" ]; then
if curl -s -x "http://$service_proxy_address" -m $curl_timeout https://github.com > /dev/null; then
echolog "✅ GitHub connection check passed (via proxy)"
break
@@ -2152,21 +2152,9 @@ check_sing_box() {
# Check version (must be >= 1.12.4)
local version
version=$(sing-box version 2> /dev/null | head -n 1 | awk '{print $3}')
if [ -n "$version" ]; then
version=$(echo "$version" | sed 's/^v//')
local major
local minor
local patch
major=$(echo "$version" | cut -d. -f1)
minor=$(echo "$version" | cut -d. -f2)
patch=$(echo "$version" | cut -d. -f3)
# Compare version: must be >= 1.12.4
if [ "$major" -gt 1 ] ||
[ "$major" -eq 1 ] && [ "$minor" -gt 12 ] ||
[ "$major" -eq 1 ] && [ "$minor" -eq 12 ] && [ "$patch" -ge 4 ]; then
sing_box_version_ok=1
fi
version="${version#v}"
if [ -n "$version" ] && is_min_package_version "$version" "1.12.4"; then
sing_box_version_ok=1
fi
fi

View File

@@ -60,7 +60,7 @@ patch_source_ruleset_rules() {
import_plain_domain_list_to_local_source_ruleset_chunked() {
local plain_list_filepath="$1"
local ruleset_filepath="$2"
local chunk_size="${3:-5000}"
local chunk_size="${3:-1000}"
local array count json_array
count=0
@@ -102,7 +102,7 @@ import_plain_domain_list_to_local_source_ruleset_chunked() {
import_plain_subnet_list_to_local_source_ruleset_chunked() {
local plain_list_filepath="$1"
local ruleset_filepath="$2"
local chunk_size="${3:-5000}"
local chunk_size="${3:-1000}"
local array count json_array
count=0