diff options
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-x | rspamc.pl.in | 3 |
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'})); } |