diff --git a/openwrt/files/ua3f.init b/openwrt/files/ua3f.init index 5411228..1ad2983 100755 --- a/openwrt/files/ua3f.init +++ b/openwrt/files/ua3f.init @@ -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 }