File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -16,25 +16,6 @@ import (
1616 netproxy "golang.org/x/net/proxy"
1717)
1818
19- // loadAndParseConfig - Loads the configuration file and parses it
20- func loadAndParseConfig (proxy * Proxy , configFile string ) (Config , error ) {
21- foundConfigFile , err := findConfigFile (& configFile )
22- if err != nil {
23- return Config {}, fmt .Errorf (
24- "Unable to load the configuration file [%s] -- Maybe use the -config command-line switch?" ,
25- configFile ,
26- )
27- }
28- WarnIfMaybeWritableByOtherUsers (foundConfigFile )
29- config := newConfig ()
30-
31- if err := cdFileDir (foundConfigFile ); err != nil {
32- return config , err
33- }
34-
35- return config , nil
36- }
37-
3819// configureLogging - Configure logging based on the configuration
3920func configureLogging (proxy * Proxy , flags * ConfigFlags , config * Config ) {
4021 if config .LogLevel >= 0 && config .LogLevel < int (dlog .SeverityLast ) {
You can’t perform that action at this time.
0 commit comments