File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -106,17 +106,17 @@ func parseCmdLine(cmdLines []string) (cfg tinkConfig) {
106
106
continue
107
107
}
108
108
109
- switch cmd := cmdLine [0 ]; cmd {
109
+ switch cmd := strings . TrimSpace ( cmdLine [0 ]) ; cmd {
110
110
case "syslog_host" :
111
- cfg .syslogHost = cmdLine [1 ]
111
+ cfg .syslogHost = strings . TrimSpace ( cmdLine [1 ])
112
112
case "insecure_registries" :
113
- cfg .insecureRegistries = strings .Split (cmdLine [1 ], "," )
113
+ cfg .insecureRegistries = strings .Split (strings . TrimSpace ( cmdLine [1 ]) , "," )
114
114
case "HTTP_PROXY" :
115
- cfg .httpProxy = cmdLine [1 ]
115
+ cfg .httpProxy = strings . TrimSpace ( cmdLine [1 ])
116
116
case "HTTPS_PROXY" :
117
- cfg .httpsProxy = cmdLine [1 ]
117
+ cfg .httpsProxy = strings . TrimSpace ( cmdLine [1 ])
118
118
case "NO_PROXY" :
119
- cfg .noProxy = cmdLine [1 ]
119
+ cfg .noProxy = strings . TrimSpace ( cmdLine [1 ])
120
120
}
121
121
}
122
122
return cfg
You can’t perform that action at this time.
0 commit comments