Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update reload to exit if parseconfig fails
I spotted that reload didn't exit when parseconfig failed and would continue to run with no knocks configured. Updated the code to still close the logfile and exit if parseconfig fails.
- Loading branch information
64230a1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the flow, does reload also need to make a call to generate_pcap_filter() after a successful config re-read to honour any updated ports in the changes?
64230a1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it does :) Have just spotted this bug report.
jvinet#2