Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #50 from dex4er/remote_port

Set REMOTE_PORT environment variable
  • Loading branch information...
commit 8d6efd20165ecf90dbda2898ed716da11fca0b16 2 parents 20dd7ee + 3cc9ab2
@miyagawa authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Starman/Server.pm
View
1  lib/Starman/Server.pm
@@ -176,6 +176,7 @@ sub process_request {
my $env = {
REMOTE_ADDR => $self->{server}->{peeraddr},
REMOTE_HOST => $self->{server}->{peerhost} || $self->{server}->{peeraddr},
+ REMOTE_PORT => $self->{server}->{peerport} || 0,
SERVER_NAME => $self->{server}->{sockaddr} || 0, # XXX: needs to be resolved?
SERVER_PORT => $self->{server}->{sockport} || 0,
SCRIPT_NAME => '',
Please sign in to comment.
Something went wrong with that request. Please try again.