Remove current directory config autoload override.
This was a holder from before there was home directory based config. The user can use -C ./btcd.conf if that is the intended goal.
This commit is contained in:
parent
6acd51f4b4
commit
f7387f217a
1 changed files with 0 additions and 5 deletions
|
@ -179,11 +179,6 @@ func loadConfig() (*config, []string, error) {
|
||||||
DbDir: defaultDbDir,
|
DbDir: defaultDbDir,
|
||||||
}
|
}
|
||||||
|
|
||||||
// A config file in the current directory takes precedence.
|
|
||||||
if fileExists(defaultConfigFilename) {
|
|
||||||
cfg.ConfigFile = defaultConfigFilename
|
|
||||||
}
|
|
||||||
|
|
||||||
// Pre-parse the command line options to see if an alternative config
|
// Pre-parse the command line options to see if an alternative config
|
||||||
// file or the version flag was specified.
|
// file or the version flag was specified.
|
||||||
preCfg := cfg
|
preCfg := cfg
|
||||||
|
|
Loading…
Reference in a new issue