style: remove unused variable and associated directory creation

This commit is contained in:
SunBK201 2025-11-03 15:08:46 +08:00
parent a82c568408
commit cddc8d456e

View File

@ -25,8 +25,6 @@ SKIP_GIDS=""
SIDECAR="OC"
FAKEIP_RANGE="198.18.0.0/16, 198.18.0.1/15, 28.0.0.1/8"
RUNDIR="/var/run/${NAME}"
[ -d "$RUNDIR" ] || mkdir -p "$RUNDIR"
LOG_FILE="/var/log/ua3f/ua3f.log"
LOG() {
@ -169,7 +167,6 @@ nft_reinit_table() {
nft_drop_table
nft add table ip "$NFT_TABLE" || return 1
# set: localnetwork
nft "add set ip $NFT_TABLE $UA3F_LANSET { type ipv4_addr; flags interval; auto-merge; }" || return 1
nft "add element ip $NFT_TABLE $UA3F_LANSET { 0.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16, 224.0.0.0/4, 240.0.0.0/4 }" >/dev/null 2>&1
}