attachmentgenie / attachmentgenie-ufw

MIT License
21 stars 28 forks source link

Support ipv6 output from ufw status. #32

Closed rjw1 closed 10 years ago

rjw1 commented 10 years ago

The output from ufw status for an ipv6 from any rule adds (v6) to the end of the line

$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
22/tcp                     ALLOW       Anywhere (v6)

This causes an ipv6 from any rule to be execed on each puppet run.

This commit works out if the ip provided is ipv6 or not and then changes the regex for the unless.

rjw1 commented 10 years ago

closing while i fix the other classes as well