summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/URI/file/Base.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/URI/file/Base.pm b/lib/URI/file/Base.pm
index dc1daf8..6beca59 100644
--- a/lib/URI/file/Base.pm
+++ b/lib/URI/file/Base.pm
@@ -66,8 +66,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;
};
}