This commit fixes panic when customDialContext fails to resolve the host's address.
This commit is contained in:
Andrey Meshkov
2019-06-18 16:18:13 +03:00
parent 6187871e3b
commit 082354204b
3 changed files with 17 additions and 12 deletions

View File

@@ -126,6 +126,7 @@ type tlsConfig struct {
}
// initialize to default values, will be changed later when reading config or parsing command line
// TODO: Get rid of global variables
var config = configuration{
ourConfigFilename: "AdGuardHome.yaml",
BindPort: 3000,