diff options
-rw-r--r-- | lib/URI/file/Base.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/URI/file/Base.pm b/lib/URI/file/Base.pm index fcf7dba..8f11dda 100644 --- a/lib/URI/file/Base.pm +++ b/lib/URI/file/Base.pm @@ -65,8 +65,8 @@ sub _file_is_localhost return 1 if $host eq "localhost"; eval { require Net::Domain; - lc(Net::Domain::hostfqdn()) eq $host || - lc(Net::Domain::hostname()) eq $host; + lc(Net::Domain::hostfqdn() || '') eq $host || + lc(Net::Domain::hostname() || '') eq $host; }; } |