Permalink
Browse files

Merge pull request #324 from dex4er/remote_port

Set REMOTE_PORT environment variable
  • Loading branch information...
miyagawa committed Sep 30, 2012
2 parents c8d0ffc + ee6c8fa commit 6289e7e2a2568b910a94be28e923b6dd7e82da1a
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 6289e7e

Please sign in to comment.