This commit is contained in:
Jeff Becker 2018-08-29 08:25:37 -04:00
parent a5ae45e0b9
commit 491274ab3f
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 6 additions and 7 deletions

View File

@ -1,11 +1,11 @@
package main package main
import ( import (
"socks5" "fmt"
"golang.org/x/net/proxy" "golang.org/x/net/proxy"
"net" "net"
"os" "os"
"fmt" "socks5"
"strings" "strings"
) )
@ -50,11 +50,10 @@ func main() {
}) })
if err != nil { if err != nil {
fmt.Printf("failed to create socks proxy %s\n", err.Error()) fmt.Printf("failed to create socks proxy %s\n", err.Error())
return return
} }
l, err := net.Listen("tcp", os.Args[1]) l, err := net.Listen("tcp", os.Args[1])
if err != nil { if err != nil {
fmt.Printf("failed to listen on %s, %s\n", os.Args[1], err.Error()) fmt.Printf("failed to listen on %s, %s\n", os.Args[1], err.Error())