-unless ($call && $host) {
- if (-e "$root/local/Listeners.pm") {
- require "$root/local/Listeners.pm";
- $host = $main::listen->[0]->[0];
- $port = $main::listen->[0]->[1];
- $host ||= '127.0.0.1';
- $host = "127.0.0.1" if $host eq '0.0.0.0';
- $port ||= 7300;
+ unless ($host) {
+ if (-e "$root/local/Listeners.pm") {
+ require "$root/local/Listeners.pm";
+ $host = $main::listen->[0]->[0];
+ $port = $main::listen->[0]->[1];
+ $host ||= '127.0.0.1';
+ $host = "127.0.0.1" if !$host && ($host eq '0.0.0.0' || $host eq '::');
+ $port ||= 7300;
+ }