Skip to content

Commit

Permalink
Remove fw4 logs from Xray
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Jan 12, 2024
1 parent b0129f1 commit 97ddfc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xray-core/files/etc/init.d/xray-nft
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ add_xray_redirect_rules() {
echo "table inet chk {include \"$tmp.nft\";}" >"$tmp.nft.chk"
if nft -f "$tmp.nft.chk" -c; then
mv "$tmp.nft" "$xrrules_nft"
fw4 restart
fw4 -q restart
fi
rm -f "$tmp.nft.chk"
fi
Expand Down Expand Up @@ -2143,7 +2143,7 @@ clear_transparent_proxy() {
if [ -f "${xrrules_nft}" ] || [ -f "${xrrules_nft}.down" ]; then
rm -f "$xrrules_nft"
rm -f "$xrrules_nft.down"
fw4 restart
fw4 -q restart
fi


Expand Down Expand Up @@ -2308,14 +2308,14 @@ rules_exist() {
rules_up() {
if [ -f "${xrrules_nft}.down" ]; then
mv -f "${xrrules_nft}.down" "$xrrules_nft"
fw4 restart
fw4 -q restart
fi
}

rules_down() {
if [ -f "${xrrules_nft}" ]; then
mv -f "$xrrules_nft" "${xrrules_nft}.down"
fw4 restart
fw4 -q restart
fi
}

Expand Down

0 comments on commit 97ddfc5

Please sign in to comment.