mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-15 00:20:34 +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 = (
|
my %protocols = (
|
||||||
#"ssh" => { address => "localhost:9001", client => client("ssh") },
|
#"ssh" => { address => "localhost:9001", client => client("ssh") },
|
||||||
# "tls" => { address => "localhost:9002", client => client("tls") },
|
# "tls" => { address => "localhost:9002", client => client("tls") },
|
||||||
"openvpn" => {address => "localhost:9003", client => client("openvpn") },
|
"openvpn" => {address => "localhost:9004", client => client("openvpn") },
|
||||||
"tinc" => {address => "localhost:9004", client => client("tinc") },
|
"tinc" => {address => "localhost:9003", client => client("tinc") },
|
||||||
);
|
);
|
||||||
|
|
||||||
##END CONFIG
|
##END CONFIG
|
||||||
|
|
||||||
|
|
||||||
# We use ports 9000, 9001 and 9002 -- hope that won't clash
|
my $sslh_address = "localhost:8080";
|
||||||
# with anything...
|
|
||||||
my $sslh_address = "localhost:9000";
|
|
||||||
my $pidfile = "/tmp/sslh_test.pid";
|
my $pidfile = "/tmp/sslh_test.pid";
|
||||||
|
|
||||||
|
|
||||||
@ -92,6 +90,8 @@ sub client {
|
|||||||
while (1) {
|
while (1) {
|
||||||
my $r;
|
my $r;
|
||||||
my $cnx = new IO::Socket::INET(PeerHost => $sslh_address);
|
my $cnx = new IO::Socket::INET(PeerHost => $sslh_address);
|
||||||
|
die "$@\n" if (!$cnx);
|
||||||
|
|
||||||
my $cnt = 0;
|
my $cnt = 0;
|
||||||
|
|
||||||
warn "starting $service\n";
|
warn "starting $service\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user