diff options
| author | Jeff Carr <[email protected]> | 2025-08-31 16:24:50 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-31 16:24:50 -0500 | 
| commit | 58e2a02c5bffdab2eac0da83c3810f1d808da7df (patch) | |
| tree | 0b8181850a5922a3575ad1172f15d2bee3bf97d9 | |
| parent | 0172b902edf115e4be8c8f50726ee166e01eb003 (diff) | |
| -rw-r--r-- | main.go | 10 | 
1 files changed, 5 insertions, 5 deletions
@@ -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())  | 
