Changeset 156

Show
Ignore:
Timestamp:
12/21/06 11:52:02 (2 years ago)
Author:
jfp
Message:

Fix bogus dns

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jsmtpd/src/org/jsmtpd/plugins/deliveryServices/RemoteSmtpSender.java

    r155 r156  
    131131        smtpHostName = ReadConfig.getInstance().getLocalDomain(); 
    132132        try { 
    133             Inet4Address localhost = (Inet4Address) Inet4Address.getLocalHost(); 
     133            Inet4Address localhost = (Inet4Address) InetAddress.getByName("127.0.0.1"); 
    134134            bogusDNS.add(localhost); 
     135            log.debug("Bogus DNS="+localhost.toString()); 
    135136        } catch (UnknownHostException e) { 
    136137          throw new PluginInitException(e); 
     
    139140            Inet4Address me = (Inet4Address)InetAddress.getByName(smtpHostName); 
    140141            bogusDNS.add(me); 
     142            log.debug("Bogus DNS="+me.toString()); 
    141143        } catch (UnknownHostException e) { 
    142144            throw new PluginInitException(e);