mirror of
https://github.com/yrutschle/sslh.git
synced 2025-05-26 03:37:42 +03:00
fix test script for new command line behaviour
This commit is contained in:
parent
43e75a0a8c
commit
0f96ed8adb
5
t
5
t
@ -84,8 +84,9 @@ sub make_sni_alpn_name {
|
||||
sub test_probe {
|
||||
my (%opts) = @_;
|
||||
|
||||
print "test_probe [$opts{expected}] $sslh_port\n";
|
||||
my $cnx = new IO::Socket::INET(PeerHost => "localhost:$sslh_port");
|
||||
warn "$!\n" unless $cnx;
|
||||
warn "t: $!\n" unless $cnx;
|
||||
return unless $cnx;
|
||||
|
||||
my $pattern = $opts{data};
|
||||
@ -217,7 +218,7 @@ for my $binary (@binaries) {
|
||||
my ($sslh_pid, $valgrind);
|
||||
if (!($sslh_pid = fork)) {
|
||||
my $user = (getpwuid $<)[0]; # Run under current username
|
||||
my $cmd = "./$binary -v 4 -f -u $user -F test.cfg";
|
||||
my $cmd = "./$binary -u $user -F test.cfg";
|
||||
#$valgrind = 1;
|
||||
#$cmd = "valgrind --leak-check=full $cmd";
|
||||
verbose_exec $cmd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user