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 |
|
|