From 3e94e2b11d73ed22c601f818b31b7c4ca281f5d1 Mon Sep 17 00:00:00 2001 From: Frederik Wedel-Heinen Date: Fri, 26 Jan 2024 11:27:02 +0100 Subject: [PATCH] chomp does not work on windows. Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/23319) --- util/perl/TLSProxy/Proxy.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/perl/TLSProxy/Proxy.pm b/util/perl/TLSProxy/Proxy.pm index 08c82c0c52d..3ecbd1893e0 100644 --- a/util/perl/TLSProxy/Proxy.pm +++ b/util/perl/TLSProxy/Proxy.pm @@ -296,7 +296,8 @@ sub start # Process the output from s_server until we find the ACCEPT line, which # tells us what the accepting address and port are. while (<$sout>) { - chomp; + print; + s/\R$//; # chomp does not work on windows. next unless (/^ACCEPT\s.*:(\d+)$/); $self->{server_port} = $1; last; -- 2.47.2