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 {
|
if err != nil {
|
||||||
fmt.Println("[ERR] Creating listener for Port ", port)
|
fmt.Println("[ERR] Creating listener for Port ", port)
|
||||||
|
fmt.Println(" Error is ", err)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("[OK ] Creating listener for Port ", port)
|
fmt.Println("[OK ] Creating listener for Port ", port)
|
||||||
for {
|
for {
|
||||||
@ -85,6 +86,7 @@ func proxy(c net.Conn) {
|
|||||||
ln, err := net.Dial("tcp", arguments.Destination)
|
ln, err := net.Dial("tcp", arguments.Destination)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("[ERR] Proxy connection to server failed")
|
fmt.Println("[ERR] Proxy connection to server failed")
|
||||||
|
fmt.Println(" Error is ", err)
|
||||||
} else {
|
} else {
|
||||||
go io.Copy(c, ln)
|
go io.Copy(c, ln)
|
||||||
io.Copy(ln, c)
|
io.Copy(ln, c)
|
||||||
|
Loading…
Reference in New Issue
Block a user