Put [::1] into default listen addresses

This commit is contained in:
Star Brilliant
2018-04-16 13:18:51 +08:00
parent 47df06b6e2
commit b9c1bcaad2
4 changed files with 6 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ func loadConfig(path string) (*config, error) {
}
if len(conf.Listen) == 0 {
conf.Listen = []string{"127.0.0.1:8053"}
conf.Listen = []string{"127.0.0.1:8053", "[::1]:8053"}
}
if conf.Path == "" {

View File

@@ -1,6 +1,7 @@
# HTTP listen port
listen = [
"127.0.0.1:8053"
"127.0.0.1:8053",
"[::1]:8053",
]
# TLS certification file