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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to