switch getMailExchangerIPs() to DNSUtil
[org.ibex.mail.git] / src / org / ibex / mail / Address.java
index 1197a30..100cf53 100644 (file)
@@ -59,7 +59,7 @@ public class Address extends JSReflection implements Serializable {
     public boolean isLocal() {
         synchronized(local) {
             if (local.contains(host)) return true;
     public boolean isLocal() {
         synchronized(local) {
             if (local.contains(host)) return true;
-            InetAddress[] mx = SMTP.getMailExchangerIPs(host);
+            InetAddress[] mx = DNSUtil.getMailExchangerIPs(host);
             for(int i=0; i<mx.length; i++) {
                 try { if (NetworkInterface.getByInetAddress(mx[i]) != null) {
                     local.add(host);
             for(int i=0; i<mx.length; i++) {
                 try { if (NetworkInterface.getByInetAddress(mx[i]) != null) {
                     local.add(host);