Permalink
Browse files

Set REMOTE_PORT environment variable

  • Loading branch information...
dex4er committed Sep 4, 2012
1 parent 9c47fb3 commit ee6c8face4b97b9701b9f7ef5c1192194a895e09
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/HTTP/Server/PSGI.pm
View
@@ -112,6 +112,7 @@ sub accept_loop {
SERVER_NAME => $self->{host},
SCRIPT_NAME => '',
REMOTE_ADDR => $conn->peerhost,
+ REMOTE_PORT => $conn->peerport || 0,
'psgi.version' => [ 1, 1 ],
'psgi.errors' => *STDERR,
'psgi.url_scheme' => $self->{ssl} ? 'https' : 'http',

0 comments on commit ee6c8fa

Please sign in to comment.