From 7509532e9ccdc6276bdea461cecfe29d80bd6fea Mon Sep 17 00:00:00 2001 From: sbwml Date: Sat, 4 Nov 2023 18:41:00 +0800 Subject: [PATCH] luci-app-mosdns: drop ip mask for ecs plugin * ip mask for ecs plugin deprecated in mosdns v5.3.0 --- luci-app-mosdns/root/etc/init.d/mosdns | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/luci-app-mosdns/root/etc/init.d/mosdns b/luci-app-mosdns/root/etc/init.d/mosdns index f8dafd0..8b7c9f9 100755 --- a/luci-app-mosdns/root/etc/init.d/mosdns +++ b/luci-app-mosdns/root/etc/init.d/mosdns @@ -117,8 +117,7 @@ init_yaml() { [ "$dump_file" -eq 0 ] && \cp -a $DUMP_FILE_DEFAULT $DUMP_FILE # ECS if [ "$enable_ecs_remote" -eq 1 ]; then - ecs_remote=$(echo "ecs ${remote_ecs_ip%.*}.0/24") - sed -i "s,ecs_remote,$ecs_remote,g" $CONF + sed -i "s,ecs_remote,ecs\ $remote_ecs_ip,g" $CONF else sed -i "/ecs_remote/d;" $CONF fi