Open dave-hassett-rft opened 8 years ago
It took a little while to work out what you mean; but i think I understand the situation;
Hi @dhassett-tr - I've released a new version of the plugin that includes your changes in #5 - Can you check it's working as you'd expect for me?
Thanks - I'll check when I get a moment. Much appreciated.
It seems that when a trap is received once, then again with different arguments, the template variable replacements from the first trap are retained. This appears to be related to the "trapdef" argument to the process_v2c_trap(trap, trapdef) method, which is only being passed by reference. The variable replacements are processed on the first trap call, but have already been replaced on the second call (and subsequent calls), so does nothing.
I'll send a merge request for a possible fix for this issue shortly.