add -w option and timeout config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user