Skip to content

Commit e135bd0

Browse files
durckuser05
andauthored
fix naming of parametres (#210)
was one conflict between README and source code. In readme used "--use-kerberos" flag. And in internal/client... some. But in cmd/client/main.go used "--host-kerberos". Ьany users were confused. I unified it Co-authored-by: user05 <[email protected]>
1 parent 78a84d0 commit e135bd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/client/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func printHelp() {
7070
fmt.Println("\t\t--connect-timeout\tDuration to wait for initial connection seconds, default 180, set to 0 to wait indefinitely")
7171

7272
if runtime.GOOS == "windows" {
73-
fmt.Println("\t\t--host-kerberos\tUse kerberos authentication on proxy server (if proxy server specified)")
73+
fmt.Println("\t\t--use-kerberos\tUse kerberos authentication on proxy server (if proxy server specified)")
7474
}
7575
}
7676

@@ -189,8 +189,8 @@ func main() {
189189

190190
userSpecifiedNTLMCreds, err := line.GetArgString("ntlm-proxy-creds")
191191
if err == nil {
192-
if line.IsSet("host-kerberos") {
193-
log.Fatal("You cannot use both the host kerberos credentials and static ntlm proxy credentials at once. --host-kerberos and --ntlm-proxy-creds")
192+
if line.IsSet("use-kerberos") {
193+
log.Fatal("You cannot use both the use kerberos credentials and static ntlm proxy credentials at once. --use-kerberos and --ntlm-proxy-creds")
194194
}
195195

196196
err = settings.SetNTLMProxyCreds(userSpecifiedNTLMCreds)
@@ -199,7 +199,7 @@ func main() {
199199
}
200200
}
201201

202-
if line.IsSet("host-kerberos") {
202+
if line.IsSet("use-kerberos") {
203203
settings.ProxyUseHostKerberos = true
204204
}
205205

0 commit comments

Comments
 (0)