Add error messages to error messages
This commit is contained in:
parent
ab34e62ff0
commit
bdcc67e653
@ -32,6 +32,7 @@ func listener(port int, listen_func func(c net.Conn)) {
|
||||
|
||||
if err != nil {
|
||||
fmt.Println("[ERR] Creating listener for Port ", port)
|
||||
fmt.Println(" Error is ", err)
|
||||
} else {
|
||||
fmt.Println("[OK ] Creating listener for Port ", port)
|
||||
for {
|
||||
@ -85,6 +86,7 @@ func proxy(c net.Conn) {
|
||||
ln, err := net.Dial("tcp", arguments.Destination)
|
||||
if err != nil {
|
||||
fmt.Println("[ERR] Proxy connection to server failed")
|
||||
fmt.Println(" Error is ", err)
|
||||
} else {
|
||||
go io.Copy(c, ln)
|
||||
io.Copy(ln, c)
|
||||
|
Loading…
Reference in New Issue
Block a user