add -w option and timeout config

This commit is contained in:
wyhaya
2019-10-15 13:23:50 +08:00
parent 8983b943cf
commit 060da0cd5d
8 changed files with 307 additions and 202 deletions

View File

@@ -61,6 +61,7 @@ Command:
Option:
-c Specify a config file
-w Check the interval of the configuration file
```
## Config
@@ -73,10 +74,12 @@ You can update the config file at any time, updns will listen for file changes
```ini
bind 0.0.0.0:53 # Binding address
proxy 8.8.8.8:53 # Proxy address
timeout 2000 # Proxy timeout (ms)
# Domain matching
google.com 1.1.1.1
^(\w+.)?go+gle.com$ 2.2.2.2
^\w+.bing.com$ 2.2.2.2
github.com ::
# Import from other file
import /other/hosts