check that we are being started under tcpserver
git-svn-id: https://svn.perl.org/qpsmtpd/branches/v010@40 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
1e113721d0
commit
75e0f9e568
@ -5,6 +5,9 @@ use base qw(Qpsmtpd);
|
||||
sub start_connection {
|
||||
my $self = shift;
|
||||
|
||||
die "Qpsmtpd::TcpServer must be started by tcpserver\n"
|
||||
unless $ENV{TCPREMOTEIP};
|
||||
|
||||
my $remote_host = $ENV{TCPREMOTEHOST} || ( $ENV{TCPREMOTEIP} ? "[$ENV{TCPREMOTEIP}]" : "[noip!]");
|
||||
my $remote_info = $ENV{TCPREMOTEINFO} ? "$ENV{TCPREMOTEINFO}\@$remote_host" : $remote_host;
|
||||
my $remote_ip = $ENV{TCPREMOTEIP};
|
||||
|
Loading…
Reference in New Issue
Block a user