aboutsummaryrefslogtreecommitdiffstats
path: root/rspamc.pl.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-04 16:39:35 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-04 16:39:35 +0400
commite30ea48c912be20ddc9c327205d146e46d60535e (patch)
treebd01b7906d88ad8a009afb3c082aad14b15aef88 /rspamc.pl.in
parent1670afcda506b1641e8b0dc34b894f7ab2817607 (diff)
downloadrspamd-e30ea48c912be20ddc9c327205d146e46d60535e.tar.gz
rspamd-e30ea48c912be20ddc9c327205d146e46d60535e.zip
* Enable support of google perf tools
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-xrspamc.pl.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/rspamc.pl.in b/rspamc.pl.in
index c8d7f07d0..9976794d0 100755
--- a/rspamc.pl.in
+++ b/rspamc.pl.in
@@ -78,6 +78,9 @@ sub connect_socket {
my $proto = getprotobyname('tcp');
my $sin;
socket ($sock, PF_INET, SOCK_STREAM, $proto) or die "cannot create tcp socket";
+ if ($cfg{'host'} eq '*') {
+ $cfg{'host'} = '127.0.0.1';
+ }
if (inet_aton ($cfg{'host'})) {
$sin = sockaddr_in ($cfg{'port'}, inet_aton($cfg{'host'}));
}