diff --git a/main.go b/main.go index c40a1ce..1819e1b 100644 --- a/main.go +++ b/main.go @@ -151,7 +151,7 @@ func doME(pm *Portmap, gus net.Listener) { log.Info("RUNNING DIAL") dest, err := net.Dial("tcp", where) if err != nil { - log.Printf("Failed to connect to %s %v", where, err) + log.Printf("Failed to connect to %s %v\n", where, err) continue } defer dest.Close() @@ -185,10 +185,10 @@ func gus3000(pm *Portmap) { // Accept incoming connection clientConn, err := listener.Accept() if err != nil { - log.Printf("Failed to accept client connection: %v", err) + log.Printf("Failed to accept client connection: %v\n", err) continue } - // log.Printf("Client connected: %s", clientConn.RemoteAddr()) + // log.Printf("Client connected: %s\n", clientConn.RemoteAddr()) // Handle the connection in a separate goroutine go handleConnection(clientConn, connect, port) @@ -202,7 +202,7 @@ func handleConnection(clientConn net.Conn, where string, localport int) { // targetConn, err := net.Dial("tcp", "go.wit.com:80") targetConn, err := net.Dial("tcp", where) if err != nil { - log.Printf("Failed to connect to %s %v", where, err) + log.Printf("Failed to connect to %s %v\n", where, err) return } defer targetConn.Close() @@ -341,7 +341,7 @@ func connectME() { // Accept incoming connection src, err := listener.Accept() if err != nil { - log.Printf("Failed to accept client connection: %v", err) + log.Printf("Failed to accept client connection: %v\n", err) return } log.Printf("Client connected: %s\n", src.RemoteAddr())