diff lib/Test/Nginx/SMTP.pm @ 45:d68b85def521

Tests: use 127.0.0.1 instead of localhost. Name 'localhost' is ambiguous if ipv6 present on system.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 02 Nov 2008 15:01:41 +0300
parents daa295331acd
children b5b4271554b0
line wrap: on
line diff
--- a/lib/Test/Nginx/SMTP.pm
+++ b/lib/Test/Nginx/SMTP.pm
@@ -22,8 +22,7 @@ sub new {
 
 	my $self = return $class->SUPER::new(
 		Proto => "tcp",
-		PeerAddr => "localhost",
-		PeerPort => 8025,
+		PeerAddr => "127.0.0.1:8025",
 		@_
 	)
 		or die "Can't connect to nginx: $!\n";