forked from v2rayA/v2rayA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker_helper.sh: Fix install iptables hooks
- Loading branch information
Markson Hon
committed
Dec 16, 2023
1 parent
c5979fd
commit 9775d89
Showing
3 changed files
with
22 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#!/bin/sh | ||
|
||
if [ "$V2RAYA_NFTABLES_SUPPORT" != on ]; then | ||
if [ "$IPTABLES_MODE" = "nftables" ]; then | ||
/sbin/ip6tables-nft "$@" | ||
elif [ "$IPTABLES_MODE" = "legacy" ]; then | ||
/sbin/ip6tables-legacy "$@" | ||
else | ||
/sbin/ip6tables "$@" | ||
fi | ||
fi | ||
if [ "$IPTABLES_MODE" = "nftables" ]; then | ||
/sbin/ip6tables-nft "$@" | ||
elif [ "$IPTABLES_MODE" = "legacy" ]; then | ||
/sbin/ip6tables-legacy "$@" | ||
else | ||
/sbin/ip6tables "$@" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#!/bin/sh | ||
|
||
if [ "$V2RAYA_NFTABLES_SUPPORT" != on ]; then | ||
if [ "$IPTABLES_MODE" = "nftables" ]; then | ||
/sbin/iptables-nft "$@" | ||
elif [ "$IPTABLES_MODE" = "legacy" ]; then | ||
/sbin/iptables-legacy "$@" | ||
else | ||
/sbin/iptables "$@" | ||
fi | ||
fi | ||
if [ "$IPTABLES_MODE" = "nftables" ]; then | ||
/sbin/iptables-nft "$@" | ||
elif [ "$IPTABLES_MODE" = "legacy" ]; then | ||
/sbin/iptables-legacy "$@" | ||
else | ||
/sbin/iptables "$@" | ||
fi |