Hi
maybe I'm dumb but following the instructions in the docs I copied Lookup.pm to Lookup_site.pm to have my lookup function.
It is completely ignored (I reloaded nfsen, of course).
I tried to rename the package to Lookup_site, also the sub name and every possible configuration, but any changes are ignored.
Changing Lookup.pm and reloading results in changes being implemented.
Any ideas?
Thanks
Probably no plugins defined in your nfsen.conf. It was the issue in my case.
Nfcomm is loading lookup_site only if NfConf::plugins is defined and after all other plugins have been loaded.
So, if we change Nfcomm.pm to load lookup_site unconditionally, everything works fine.
Here is the patch:
Index: libexec/Nfcomm.pm
===================================================================
--- libexec/Nfcomm.pm
+++ libexec/Nfcomm.pm
600a601,602
> $CMD_lookup{'lookup'} = load_lookup();
>
683,684d684
< $CMD_lookup{'lookup'} = load_lookup();
<