Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set REMOTE_PORT environment variable

  • Loading branch information...
commit 3cc9ab213bf0f7fc996b0d5b3b5eef48c18c7a95 1 parent 20dd7ee
Piotr Roszatycki dex4er authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Starman/Server.pm
1  lib/Starman/Server.pm
View
@@ -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.