v1.0.0beta14fix5

~优化节点保存方式,现在每10分钟检测一次,仅在检测到文件变动后方进行保存
~修复部分ssr节点不可用的bug
~mac过滤功能增加移除单个设备以及添加全部设备功能
~修复设置本机代理时直接跳出的bug
~优化安装脚本,增加root用户检测
~优化ipv6dns拦截方式
~回滚对循环计算的方式
This commit is contained in:
juewuy
2020-10-14 09:12:23 +08:00
parent 68e7519fdf
commit 8dc3c3fdc2
3 changed files with 11 additions and 11 deletions

View File

@@ -62,9 +62,9 @@ if [ -n "$PID" ];then
VmRSS=`cat /proc/$PID/status|grep -w VmRSS|awk '{print $2,$3}'`
#获取运行时长
if [ -n "$start_time" ]; then
time=$(expr `date +%s` - $start_time)
#day=$(($time/86400))
day=$(expr $time / 86400)
time=$((`date +%s`-start_time))
day=$((time/86400))
#day=$(expr $time / 86400)
if [ "$day" = "0" ]; then
day=""
else
@@ -386,7 +386,7 @@ macfilter(){
i=1
for mac in $(cat $clashdir/mac); do
echo -e " $i \033[32m$(cat /tmp/dhcp.leases | awk '{print $3,$2,$4}' | grep $mac)\033[0m"
i=$(expr $i + 1)
i=$((i+1))
done
echo -----------------------------------------------
echo -e "\033[0m 0 或回车 结束删除"