Trigger ipfilter reload
Posted: Thu Apr 09, 2015 1:34 am
I have a batch job that goes and gets the latest ipfilters daily. I'd like to trigger a reload without restarting qb. I'm running 3.2.0. Alpha. I use something like this below to disable and reenable the filter (I have local auth enabled so these commands do change the setting). Is that enough to trigger a reload?
Also, what the heck happened to logging in 3.2.0. Is there any logging in the non-debug build? I get two lines out on startup and then nothing even if there is an error. I'd really like to see some feedback that the filter is loading, but I don't know how to turn on logging.
steve
/usr/bin/wget -q -O - --header="Content-type:application/x-www-form-urlencoded" --post-data="json={\"ip_filter_enabled\":\"false\"}" http://192.168.1.200:7097/command/setPreferences
/usr/bin/wget -q -O - --header="Content-type:application/x-www-form-urlencoded" --post-data="json={\"ip_filter_enabled\":\"true\"}" http://192.168.1.200:7097/command/setPreferences
Also, what the heck happened to logging in 3.2.0. Is there any logging in the non-debug build? I get two lines out on startup and then nothing even if there is an error. I'd really like to see some feedback that the filter is loading, but I don't know how to turn on logging.
steve
/usr/bin/wget -q -O - --header="Content-type:application/x-www-form-urlencoded" --post-data="json={\"ip_filter_enabled\":\"false\"}" http://192.168.1.200:7097/command/setPreferences
/usr/bin/wget -q -O - --header="Content-type:application/x-www-form-urlencoded" --post-data="json={\"ip_filter_enabled\":\"true\"}" http://192.168.1.200:7097/command/setPreferences