-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
296 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[start_on_boot] | ||
enabled = true | ||
# choose between skip and only, if both skipp and only are empty, all interfaces will be started | ||
# if only_ifaces is not empty, skip_ifaces will be ignored | ||
skip_ifaces = [] | ||
#only_ifaces = [] | ||
|
||
[enhanced_dns.direct_resolver] | ||
# resolve dns from direct NS server | ||
enabled = true | ||
# fetch ROA, config for direct_resolver | ||
roa_finder = "223.5.5.5" | ||
|
||
[ddns] | ||
enabled = true | ||
# ddns check interval | ||
interval = 60 | ||
# when last handshake time is handshake_max seconds before now, treat it as offline | ||
handshake_max = 150 | ||
skip_ifaces = [] | ||
#only_ifaces = [] | ||
|
||
# following configs are not implemented yet | ||
#[openwrt] | ||
#uci_iface = true | ||
#namemap.tuntun = "tun00" | ||
# | ||
#[openwrt.firewall] | ||
#default = 'dn11' | ||
#fwmap.if0 = 'dn22' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package conf | ||
|
||
import "testing" | ||
|
||
func TestParseConfig(t *testing.T) { | ||
Init("config-sample.toml") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d9bfdbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这,没直接1.0.0吗居然。配置文件格式变化没有向下兼容了吧?