You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/root.go
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
package cmd
16
16
17
17
import (
18
+
"crypto/tls"
18
19
"fmt"
19
20
"net/http"
20
21
"net/url"
@@ -105,7 +106,7 @@ func init() {
105
106
// will be global for your application.
106
107
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file path (default is $HOME/.nethelp.yaml)")
107
108
rootCmd.PersistentFlags().BoolP("verbose", "v", false, "print all logging levels")
108
-
rootCmd.PersistentFlags().StringVarP(&userProxy, "proxy", "p", "", "upstream proxy for nethelp to use. Port should be added like my.proxy:8080")
109
+
rootCmd.PersistentFlags().StringVarP(&userProxy, "proxy", "p", "", "upstream proxy for nethelp to use. Enter like -p protocol://username:password@host:port")
109
110
// TODO
110
111
// root.rootCmd.PersistentFlags().StringVarP(&proxyAuth, "auth", "a", "", "authentication for upstream proxy. use like -a username:password.")
0 commit comments