mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
fix test script for new command line behaviour
This commit is contained in:
1 parent
43e75a0a8c
commit
0f96ed8adb
1 file changed
+3
-2
@@ -84,8 +84,9 @@ sub make_sni_alpn_name {
|
|||||||
sub test_probe {
|
sub test_probe {
|
||||||
my (%opts) = @_;
|
my (%opts) = @_;
|
||||||
|
|
||||||
|
print "test_probe [$opts{expected}] $sslh_port\n";
|
||||||
my $cnx = new IO::Socket::INET(PeerHost => "localhost:$sslh_port");
|
my $cnx = new IO::Socket::INET(PeerHost => "localhost:$sslh_port");
|
||||||
warn "$!\n" unless $cnx;
|
warn "t: $!\n" unless $cnx;
|
||||||
return unless $cnx;
|
return unless $cnx;
|
||||||
|
|
||||||
my $pattern = $opts{data};
|
my $pattern = $opts{data};
|
||||||
@@ -217,7 +218,7 @@ for my $binary (@binaries) {
|
|||||||
my ($sslh_pid, $valgrind);
|
my ($sslh_pid, $valgrind);
|
||||||
if (!($sslh_pid = fork)) {
|
if (!($sslh_pid = fork)) {
|
||||||
my $user = (getpwuid $<)[0]; # Run under current username
|
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;
|
#$valgrind = 1;
|
||||||
#$cmd = "valgrind --leak-check=full $cmd";
|
#$cmd = "valgrind --leak-check=full $cmd";
|
||||||
verbose_exec $cmd;
|
verbose_exec $cmd;
|
||||||
|
|||||||
Reference in new issue
Block a user