Add ReadMe.md

This commit is contained in:
Nick Peng
2018-07-22 19:16:24 +08:00
parent a1a509f52c
commit a707bf22fd
7 changed files with 330 additions and 62 deletions

View File

@@ -0,0 +1,3 @@
# Add domains which you want to force to an IP address here.
# The example below send any host in example.com to a local webserver.
#address /example.com/127.0.0.1

View File

@@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2011 OpenWrt.org
# Copyright (C) 2018 Nick Peng (pymumu@gmail.com)
START=50
SERVICE_USE_PID=1
@@ -97,7 +97,7 @@ start_service() {
config_foreach load_server "server"
echo "# address" >> $SMARTDNS_CONF_TMP
grep "^ *address" $ADDRESS_CONF >> $SMARTDNS_CONF_TMP
grep "^ *address " $ADDRESS_CONF >> $SMARTDNS_CONF_TMP
config_get_bool "enabled" "$section" "enabled" '0'
mv $SMARTDNS_CONF_TMP $SMARTDNS_CONF