You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by da...@apache.org on 2002/02/04 11:04:09 UTC

cvs commit: jakarta-james/src/java/org/apache/james James.java

danny       02/02/04 02:04:09

  Modified:    src/java/org/apache/james Tag: v2-0a2candidate1 James.java
  Log:
  case insensitising (you know what I mean!) isLocalServer();
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.15.2.1  +4 -4      jakarta-james/src/java/org/apache/james/James.java
  
  Index: James.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/James.java,v
  retrieving revision 1.15
  retrieving revision 1.15.2.1
  diff -u -r1.15 -r1.15.2.1
  --- James.java	7 Dec 2001 21:53:27 -0000	1.15
  +++ James.java	4 Feb 2002 10:04:09 -0000	1.15.2.1
  @@ -52,8 +52,8 @@
    * @author Serge
    * @author <a href="mailto:charles@benett1.demon.co.uk">Charles Benett</a>
    *
  - * This is $Revision: 1.15 $
  - * Committed on $Date: 2001/12/07 21:53:27 $ by: $Author: serge $
  + * This is $Revision: 1.15.2.1 $
  + * Committed on $Date: 2002/02/04 10:04:09 $ by: $Author: danny $
    */
   public class James
       extends AbstractLoggable
  @@ -141,7 +141,7 @@
           serverNames = new Vector();
           Configuration serverConf = conf.getChild("servernames");
           if (serverConf.getAttribute("autodetect").equals("TRUE") && (!hostName.equals("localhost"))) {
  -            serverNames.add(hostName);
  +            serverNames.add(hostName.toLowerCase());
           }
   
           final Configuration[] serverNameConfs =
  @@ -444,7 +444,7 @@
       }
   
       public boolean isLocalServer( final String serverName ) {
  -        return serverNames.contains( serverName );
  +        serverNames.contains(serverName.toLowerCase());
       }
   
       public String getServerInfo() {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>