*: change initDNSServer method, add getDataDir

This commit is contained in:
Andrey Meshkov
2019-10-02 16:53:23 +03:00
parent 9b23acf6da
commit 33ae359cc1
6 changed files with 14 additions and 10 deletions

View File

@@ -239,6 +239,11 @@ func (c *configuration) getConfigFilename() string {
return configFile
}
// getDataDir returns path to the directory where we store databases and filters
func (c *configuration) getDataDir() string {
return filepath.Join(c.ourWorkingDir, dataDir)
}
// getLogSettings reads logging settings from the config file.
// we do it in a separate method in order to configure logger before the actual configuration is parsed and applied.
func getLogSettings() logSettings {