Return-Path:
Delivered-To: apmail-avalon-cvs-archive@www.apache.org
Received: (qmail 2970 invoked from network); 8 Aug 2004 07:58:14 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur-2.apache.org with SMTP; 8 Aug 2004 07:58:14 -0000
Received: (qmail 38422 invoked by uid 500); 8 Aug 2004 07:58:14 -0000
Delivered-To: apmail-avalon-cvs-archive@avalon.apache.org
Received: (qmail 38351 invoked by uid 500); 8 Aug 2004 07:58:14 -0000
Mailing-List: contact cvs-help@avalon.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe:
List-Subscribe:
List-Help:
List-Post:
List-Id: "Avalon CVS List"
Reply-To: "Avalon Developers List"
Delivered-To: mailing list cvs@avalon.apache.org
Received: (qmail 38337 invoked by uid 99); 8 Aug 2004 07:58:13 -0000
X-ASF-Spam-Status: No, hits=-2.8 required=10.0
tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194)
by apache.org (qpsmtpd/0.27.1) with SMTP; Sun, 08 Aug 2004 00:58:13 -0700
Received: (qmail 2924 invoked by uid 65534); 8 Aug 2004 07:58:13 -0000
Date: 8 Aug 2004 07:58:13 -0000
Message-ID: <20040808075813.2922.qmail@minotaur.apache.org>
From: niclas@apache.org
To: cvs@avalon.apache.org
Subject: svn commit: rev 36080 -
avalon/trunk/planet/facilities/console/impl/src/main/org/apache/avalon/facilities/console/impl
X-Virus-Checked: Checked
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N
Author: niclas
Date: Sun Aug 8 00:58:12 2004
New Revision: 36080
Modified:
avalon/trunk/planet/facilities/console/impl/src/main/org/apache/avalon/facilities/console/impl/ConsoleImpl.java
Log:
Added that the localhost address is added by default.
Modified: avalon/trunk/planet/facilities/console/impl/src/main/org/apache/avalon/facilities/console/impl/ConsoleImpl.java
==============================================================================
--- avalon/trunk/planet/facilities/console/impl/src/main/org/apache/avalon/facilities/console/impl/ConsoleImpl.java (original)
+++ avalon/trunk/planet/facilities/console/impl/src/main/org/apache/avalon/facilities/console/impl/ConsoleImpl.java Sun Aug 8 00:58:12 2004
@@ -59,6 +59,7 @@
* <parameters>
* <parameter name="port" value="3333" />
* <parameter name="allow-deny" value="false" />
+ * <parameter name="local-allow" value="true" />
* <parameter name="welcome-text" value="type 'help' form more info." />
* </parameters>
*
@@ -66,6 +67,9 @@
* if the host does not exist in the deny list, otherwise it is not allowed
* unless the host exist in the allow list.
*
+ * If local-allow is true, the localhost/127.0.0.1 is added to the
+ * allow list. This is default, so one can connect without further parameterization
+ * or configuration.
*
* Configuration
*
@@ -138,6 +142,7 @@
* <parameters>
* <parameter name="port" value="3333" />
* <parameter name="allow-deny" value="false" />
+ * <parameter name="local-allow" value="true" />
* <parameter name="welcome-text" value="type 'help' form more info." />
* </parameters>
*
@@ -148,6 +153,13 @@
m_Port = params.getParameterAsInteger( "port", 3333 );
m_Welcome = params.getParameter( "welcome-text", "type 'help' form more info." );
m_Allow = params.getParameterAsBoolean( "deny-allow", false );
+
+ boolean localAllow = params.getParameterAsBoolean( "allow-local", true );
+ if( localAllow )
+ {
+ InetAddress address = InetAddress.getByName( "127.0.0.1" );
+ m_Allows.add( address );
+ }
}
/**
@@ -171,6 +183,7 @@
* </connections>
* </configuration>
*
+ *
*/
public void configure( Configuration conf )
throws ConfigurationException
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org