mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 07:37:15 +03:00
fix to work with test.cfg
This commit is contained in:
parent
5715a9f0bd
commit
0e3242c115
10
t_load
10
t_load
@ -46,16 +46,14 @@ my $stop_client_probability = .001;
|
||||
my %protocols = (
|
||||
#"ssh" => { address => "localhost:9001", client => client("ssh") },
|
||||
# "tls" => { address => "localhost:9002", client => client("tls") },
|
||||
"openvpn" => {address => "localhost:9003", client => client("openvpn") },
|
||||
"tinc" => {address => "localhost:9004", client => client("tinc") },
|
||||
"openvpn" => {address => "localhost:9004", client => client("openvpn") },
|
||||
"tinc" => {address => "localhost:9003", client => client("tinc") },
|
||||
);
|
||||
|
||||
##END CONFIG
|
||||
|
||||
|
||||
# We use ports 9000, 9001 and 9002 -- hope that won't clash
|
||||
# with anything...
|
||||
my $sslh_address = "localhost:9000";
|
||||
my $sslh_address = "localhost:8080";
|
||||
my $pidfile = "/tmp/sslh_test.pid";
|
||||
|
||||
|
||||
@ -92,6 +90,8 @@ sub client {
|
||||
while (1) {
|
||||
my $r;
|
||||
my $cnx = new IO::Socket::INET(PeerHost => $sslh_address);
|
||||
die "$@\n" if (!$cnx);
|
||||
|
||||
my $cnt = 0;
|
||||
|
||||
warn "starting $service\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user