You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by as...@apache.org on 2007/04/27 16:09:28 UTC

svn commit: r533104 - /webservices/synapse/trunk/java/repository/conf/synapse.xml

Author: asankha
Date: Fri Apr 27 07:09:28 2007
New Revision: 533104

URL: http://svn.apache.org/viewvc?view=rev&rev=533104
Log:
prevent synapse from being an open proxy when using its default configuration (http://en.wikipedia.org/wiki/Open_proxy)

Modified:
    webservices/synapse/trunk/java/repository/conf/synapse.xml

Modified: webservices/synapse/trunk/java/repository/conf/synapse.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/synapse.xml?view=diff&rev=533104&r1=533103&r2=533104
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/synapse.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/synapse.xml Fri Apr 27 07:09:28 2007
@@ -19,11 +19,17 @@
 
 <!-- A simple Synapse configuration -->
 <definitions xmlns="http://ws.apache.org/ns/synapse">
-  
-  	<!-- Log all messages passing through -->
-  	<log level="full"/>
-  	
-  	<!-- Send the messages where they have been sent (i.e. implicit "To" EPR) -->
-  	<send/>
 
+    <in>
+		<filter source="get-property('To')" regex=".*localhost.*">
+		  	<!-- Log all messages passing through -->
+		  	<log level="full"/>
+
+		  	<!-- Send the messages where they have been sent (i.e. implicit "To" EPR) -->
+		  	<send/>
+	    </filter>
+	</in>
+	<out>
+		<send/>
+	</out>
 </definitions>



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org