From 819111f953f9b22cccb1344315e02dc19bcf7cac Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 Apr 2026 17:28:58 +0400 Subject: [PATCH] fix: type filter for output --- xray-manager.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xray-manager.sh b/xray-manager.sh index f3a965d..4a308a9 100755 --- a/xray-manager.sh +++ b/xray-manager.sh @@ -127,7 +127,7 @@ _nft_init() { nft flush chain ip "$TABLE" prerouting nft add rule ip "$TABLE" prerouting fib daddr type local accept - nft add chain ip "$TABLE" output { type route hook output priority -150 \; policy accept \; } 2>/dev/null + nft add chain ip "$TABLE" output { type filter hook output priority -150 \; policy accept \; } 2>/dev/null nft flush chain ip "$TABLE" output nft add rule ip "$TABLE" output fib daddr type local accept @@ -343,7 +343,6 @@ _run() { DNS_CHANGES=0; NEED_UPDATE=0; : > "$ACTIVE_LIST" [ "$FULL_LOAD" = "1" ] && _wait_for_net - _wait_for_net _nft_init _log "main: processing data sections" "debug" @@ -422,4 +421,4 @@ case "$1" in reload) export SKIP_URL=1 FULL_LOAD=0; _run "reload" ;; update) export SKIP_URL=0 FULL_LOAD=0; _run "update" ;; *) echo "Usage: $0 {start|stop|restart|reload|update}"; exit 1 ;; -esac \ No newline at end of file +esac