This commit is contained in:
Denis(Difrex) Zheleztsov 2014-11-06 12:45:38 +03:00
parent 3c932e6294
commit f090414dc8

View File

@ -169,6 +169,10 @@ my $push = sub {
my $hash = $req->param('hash'); my $hash = $req->param('hash');
$config = $c->reload(); $config = $c->reload();
if ( $config->{host} =~ m/.+\,.+/ ) {
my @hosts = split( /,/, $config->{host} );
$config->{host} = $hosts[0];
}
my $s = II::Send->new( $config, $echo, $base64 ); my $s = II::Send->new( $config, $echo, $base64 );
$s->send($hash); $s->send($hash);