From ceb68ce67097454f7a33bffdd81bf30f40c5f378 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 5 Oct 2020 08:05:58 -0700 Subject: [PATCH] proxy seems to work --- src/cli/cli.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cli/cli.go b/src/cli/cli.go index 62318b8..d02a085 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -14,6 +14,7 @@ import ( "time" "github.com/schollz/cli/v2" + "github.com/schollz/croc/v8/src/comm" "github.com/schollz/croc/v8/src/croc" "github.com/schollz/croc/v8/src/models" "github.com/schollz/croc/v8/src/tcp" @@ -160,6 +161,7 @@ func determinePass(c *cli.Context) (pass string) { func send(c *cli.Context) (err error) { setDebugLevel(c) + comm.Socks5Proxy = c.String("socks5") crocOptions := croc.Options{ SharedSecret: c.String("code"), IsSender: true, @@ -357,6 +359,7 @@ func saveConfig(c *cli.Context, crocOptions croc.Options) { } func receive(c *cli.Context) (err error) { + comm.Socks5Proxy = c.String("socks5") crocOptions := croc.Options{ SharedSecret: c.String("code"), IsSender: false,