Add error messages to error messages

This commit is contained in:
maride 2017-09-28 10:56:36 +02:00
parent ab34e62ff0
commit bdcc67e653

View File

@ -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)