Skip to content

Commit 50a7628

Browse files
committed
tools/proxy.php: stop the terminal beeping trying to print special characters
1 parent a28d052 commit 50a7628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function serverToClientRelay(ClientSession $client, ServerSocket $clientProxySoc
152152
$buffer = $proxyToServerUnconnectedSocket->readPacket();
153153
if($buffer !== null && $buffer !== "" && ord($buffer[0]) === MessageIdentifiers::ID_UNCONNECTED_PONG){
154154
$mostRecentPong = $buffer;
155-
\GlobalLogger::get()->info("Caching ping response from server: " . $buffer);
155+
\GlobalLogger::get()->info("Caching ping response from server: " . preg_replace("/[[:^print:]]/", ".", $buffer));
156156
}
157157
}elseif($socket === $clientProxySocket->getSocket()){
158158
try{

0 commit comments

Comments
 (0)