From 491274ab3f36cc0ddc50cb47f03777fb86d8322e Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Wed, 29 Aug 2018 08:25:37 -0400 Subject: [PATCH] go fmt --- main.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 693e0ed..3e5cdc2 100644 --- a/main.go +++ b/main.go @@ -1,11 +1,11 @@ package main import ( - "socks5" + "fmt" "golang.org/x/net/proxy" "net" "os" - "fmt" + "socks5" "strings" ) @@ -21,7 +21,7 @@ func main() { onion, err = proxy.SOCKS5("tcp", os.Args[2], nil, nil) if err != nil { fmt.Printf("failed to create onion proxy to %s, %s\n", os.Args[2], err.Error()) - return + return } if len(args) > 3 { i2p, err = proxy.SOCKS5("tcp", os.Args[3], nil, nil) @@ -50,11 +50,10 @@ func main() { }) if err != nil { - fmt.Printf("failed to create socks proxy %s\n", err.Error()) - return + fmt.Printf("failed to create socks proxy %s\n", err.Error()) + return } - - + l, err := net.Listen("tcp", os.Args[1]) if err != nil { fmt.Printf("failed to listen on %s, %s\n", os.Args[1], err.Error())