mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
style: remove unused variable and associated directory creation
This commit is contained in:
parent
a82c568408
commit
cddc8d456e
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user