Use the status argument instead of checking IP address #1

merged 1 commit into from May 19, 2012


None yet
2 participants

hagabaka commented May 11, 2012


I just found this script, and tried it, but it sets polipo to offline whether I disconnect or connect in NetworkManager. The script tries to detect connection status by IP address, but according to , the connection status is passed to dispatcher scripts as the second argument, so I modified it to just use that. I also changed IFACE to the first argument according to the same reference. I haven't written dispatcher scripts before, but this version fixes the problem for me.

smartin015 merged commit 39cb2dc into smartin015:master May 19, 2012


smartin015 commented May 19, 2012

Thanks! I wasn't aware of the passed connection argument. Good find :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment