merge changes of my version

This commit is contained in:
pexcn 2022-12-15 11:34:04 +08:00
parent e14bb72989
commit f09a3b9770
2 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,7 @@ services:
privileged: true
environment:
TZ: Asia/Taipei
USE_IPTABLES_NFT_BACKEND: 1
USE_IPTABLES_NFT_BACKEND: 0
RUST_LOG: INFO
command: >
phantun-server --local 1985 --remote 127.0.0.1:1984 --ipv4-only
@ -22,7 +22,7 @@ services:
privileged: true
environment:
TZ: Asia/Taipei
USE_IPTABLES_NFT_BACKEND: 1
USE_IPTABLES_NFT_BACKEND: 0
RUST_LOG: INFO
command: >
phantun-client --local 127.0.0.1:1984 --remote 11.22.33.44:1985 --ipv4-only

View File

@ -4,10 +4,8 @@
if [ "$USE_IPTABLES_NFT_BACKEND" = 1 ]; then
alias iptables=iptables-nft
alias iptables-save=iptables-nft-save
alias iptables-restore=iptables-nft-restore
alias ip6tables=ip6tables-nft
alias ip6tables-save=ip6tables-nft-save
alias ip6tables-restore=ip6tables-nft-restore
fi
info() {