diff --git a/autoXRAY.sh b/autoXRAY.sh index fa77293..875c5c2 100644 --- a/autoXRAY.sh +++ b/autoXRAY.sh @@ -199,10 +199,13 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" } ], "outbounds": [ - { - "protocol": "freedom", - "tag": "direct" - }, + { + "protocol": "freedom", + "tag": "direct", + "settings": { + "domainStrategy": "ForceIPv4" + } + }, { "protocol": "blackhole", "tag": "block" diff --git a/autoXRAYno443.sh b/autoXRAYno443.sh index e20c27f..40ff13c 100644 --- a/autoXRAYno443.sh +++ b/autoXRAYno443.sh @@ -209,7 +209,10 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "outbounds": [ { "protocol": "freedom", - "tag": "direct" + "tag": "direct", + "settings": { + "domainStrategy": "ForceIPv4" + } }, { "protocol": "blackhole", diff --git a/autoXRAYselfsteal.sh b/autoXRAYselfsteal.sh index e6065ab..761751d 100644 --- a/autoXRAYselfsteal.sh +++ b/autoXRAYselfsteal.sh @@ -329,10 +329,13 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" } ], "outbounds": [ - { - "protocol": "freedom", - "tag": "direct" - }, + { + "protocol": "freedom", + "tag": "direct", + "settings": { + "domainStrategy": "ForceIPv4" + } + }, { "protocol": "blackhole", "tag": "block" diff --git a/autoXRAYselfstealConfChina.sh b/autoXRAYselfstealConfChina.sh index c3275ea..b418392 100644 --- a/autoXRAYselfstealConfChina.sh +++ b/autoXRAYselfstealConfChina.sh @@ -268,10 +268,13 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" } ], "outbounds": [ - { - "protocol": "freedom", - "tag": "direct" - }, + { + "protocol": "freedom", + "tag": "direct", + "settings": { + "domainStrategy": "ForceIPv4" + } + }, { "protocol": "blackhole", "tag": "block" diff --git a/autoXRAYselfstealConfRU.sh b/autoXRAYselfstealConfRU.sh index 05c31e7..8217abc 100644 --- a/autoXRAYselfstealConfRU.sh +++ b/autoXRAYselfstealConfRU.sh @@ -268,10 +268,13 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" } ], "outbounds": [ - { - "protocol": "freedom", - "tag": "direct" - }, + { + "protocol": "freedom", + "tag": "direct", + "settings": { + "domainStrategy": "ForceIPv4" + } + }, { "protocol": "blackhole", "tag": "block" @@ -320,7 +323,6 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.html" "geosite:xiaomi", "geosite:category-android-app-download", "geosite:f-droid", - "geosite:twitch", "geosite:yandex", "geosite:vk", "geosite:microsoft", diff --git a/autoXRAYselfstealConfRUbrEU.sh b/autoXRAYselfstealConfRUbrEU.sh index e7df11c..270f0da 100644 --- a/autoXRAYselfstealConfRUbrEU.sh +++ b/autoXRAYselfstealConfRUbrEU.sh @@ -273,7 +273,30 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" "geosite:category-ads" ], "outboundTag": "block" - } + }, + { + "domain": [ + "geosite:apple", + "geosite:apple-pki", + "geosite:huawei", + "geosite:xiaomi", + "geosite:category-android-app-download", + "geosite:f-droid", + "geosite:yandex", + "geosite:vk", + "geosite:microsoft", + "geosite:win-update", + "geosite:win-extra", + "geosite:google-play", + "geosite:steam", + "geosite:category-ru" + ], + "outboundTag": "direct" + }, + { + "inboundTag": ["VtcpRself"], + "outboundTag": "proxy" + } ] }, "inbounds": [ @@ -359,10 +382,13 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json" } } }, - { - "protocol": "freedom", - "tag": "direct" - }, + { + "protocol": "freedom", + "tag": "direct", + "settings": { + "domainStrategy": "ForceIPv4" + } + }, { "protocol": "blackhole", "tag": "block" @@ -411,7 +437,6 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.html" "geosite:xiaomi", "geosite:category-android-app-download", "geosite:f-droid", - "geosite:twitch", "geosite:yandex", "geosite:vk", "geosite:microsoft",