diff options
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-x | rspamc.pl.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rspamc.pl.in b/rspamc.pl.in index efadde0a2..6aca04d0d 100755 --- a/rspamc.pl.in +++ b/rspamc.pl.in @@ -122,7 +122,12 @@ sub parse_config { if (!$skip && ((!$is_ctrl && !$ctrl) || ($ctrl && $is_ctrl)) && $_ =~ /^\s*bind_socket\s*=\s*((([^:]+):(\d+))|(\/\S*))/i) { if ($3 && $4) { - $cfg{'hosts'} = [ "$3:$4" ]; + if ($3 eq '*') { + $cfg{'hosts'} = [ "127.0.0.1:$4" ]; + } + else { + $cfg{'hosts'} = [ "$3:$4" ]; + } } else { $cfg{'hosts'} = [ "$5" ]; |