pschmitt / pia-tools

Shell script to automate privateinternetaccess port forwarding and starting/stopping transmission when connected/disconnected and other stuff
https://aur.archlinux.org/packages/pia-tools
GNU General Public License v3.0
132 stars 23 forks source link

Revert to Old Behaviour of Adding Rules for All Network Devices by Default #21

Closed noctuid closed 9 years ago

noctuid commented 9 years ago

This pull request addresses issue #10 and changes the default behaviour to how it used to be without using ifconfig. I think it's preferable to add all network devices instead of only the one that is currently in use (since that can quickly change).

Alternatively, if you want to keep the new behaviour, the man page should be updated to reflect this. You might also consider using ip link and checking for "state UP".

noctuid commented 9 years ago

I guess I accidentally didn't create the new branch from master. Sorry for the noise.