ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/filter/plugins/SourceChecker__Plugin.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/plugins/SourceChecker__Plugin.java (file contents):
Revision 1.5 by tdb, Wed Feb 5 16:43:47 2003 UTC vs.
Revision 1.6 by tdb, Mon Feb 24 20:18:49 2003 UTC

# Line 82 | Line 82 | public class SourceChecker__Plugin implements PluginFi
82              _stringACL = newStringACL;
83          }
84          
85 <        // only want to check data or heartbeat packets
85 >        // only want to check data packets
86          // any others will probably get filtered out further up the filter chain
87 <        if(packet.getParam("packet.attributes.type").equals("data") ||
88 <           packet.getParam("packet.attributes.type").equals("heartbeat")) {
87 >        if(packet.getParam("packet.attributes.type").equals("data")) {
88              // check the machine name against the ACL
89              // we could check the IP too... but it's a lot of work for _every_ packet... maybe...
90              return _acl.check(packet.getParam("packet.attributes.machine_name"));
91          }
92          
93          // a good catchall, I guess
94 <        // it's not a data or heartbeat packet, in which case it should go through
94 >        // it's not a data packet, in which case it should go through
95          return true;
96      }
97  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines