projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Lazy resolution of hostname
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Request.pm
diff --git
a/lib/Catalyst/Request.pm
b/lib/Catalyst/Request.pm
index
ece1dc8
..
27f521f
100644
(file)
--- a/
lib/Catalyst/Request.pm
+++ b/
lib/Catalyst/Request.pm
@@
-113,7
+113,7
@@
has hostname => (
lazy => 1,
default => sub {
my ($self) = @_;
- gethostbyaddr( inet_aton( $self->address ), AF_INET )
+ gethostbyaddr( inet_aton( $self->address ), AF_INET ) || 'localhost'
},
);