From 885f73db1c76e8ce7072d1fecc27ea9f5c3b99a5 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Wed, 24 Jul 2024 07:39:27 -0400 Subject: [PATCH] Add proxy to list command also --- cmd/connect.go | 2 +- cmd/list.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/connect.go b/cmd/connect.go index 8e7058c..168cca9 100644 --- a/cmd/connect.go +++ b/cmd/connect.go @@ -25,7 +25,7 @@ var ( func init() { connectCmd.Flags().BoolVarP(&flagRandom, "random", "r", false, "connect to a random server") connectCmd.Flags().BoolVarP(&flagReconnect, "reconnect", "t", false, "continually attempt to connect to the server") - connectCmd.Flags().StringVarP(&flagProxy, "proxy", "p", "", "provide a http/https proxy server to make requests through (i.e. 127.0.0.1:8080)") + connectCmd.Flags().StringVarP(&flagProxy, "proxy", "p", "", "provide a http/https proxy server to make requests through (i.e. http://127.0.0.1:8080)") connectCmd.Flags().StringVarP(&flagSocks5Proxy, "socks5", "s", "", "provide a socks5 proxy server to make requests through (i.e. 127.0.0.1:1080)") rootCmd.AddCommand(connectCmd) } diff --git a/cmd/list.go b/cmd/list.go index 50ae746..1c696a1 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -14,6 +14,8 @@ import ( func init() { rootCmd.AddCommand(listCmd) + listCmd.Flags().StringVarP(&flagProxy, "proxy", "p", "", "provide a http/https proxy server to make requests through (i.e. http://127.0.0.1:8080)") + listCmd.Flags().StringVarP(&flagSocks5Proxy, "socks5", "s", "", "provide a socks5 proxy server to make requests through (i.e. 127.0.0.1:1080)") } var listCmd = &cobra.Command{