summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sockettransport.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sockettransport.class.php b/sockettransport.class.php
index 572b4c4..6c2aef7 100644
--- a/sockettransport.class.php
+++ b/sockettransport.class.php
@@ -93,7 +93,7 @@ class SocketTransport
}
// also try gethostbyname, since name could also be something else, such as "localhost" etc.
$ip = gethostbyname($hostname);
- if (!in_array($ip,$ip4s)) $ip4s[] = $ip;
+ if ($ip != $hostname && !in_array($ip,$ip4s)) $ip4s[] = $ip;
if ($this->debug) call_user_func($this->debugHandler, "IPv4 addresses for $hostname: ".implode(', ',$ip4s));
}
}