iptables-web 0.2.0.beta1 → 0.2.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/iptables-web +2 -2
- data/lib/iptables_web/model/node.rb +1 -0
- data/lib/iptables_web/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 180362da3e0cbb79b049fb1de73831fae308aed0
|
4
|
+
data.tar.gz: 4ab058862b9beb3af4bd65d0fc076a11c5e89272
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bac97d96e69e6c553dd9f36a576c224a7257a4a5dd0bf66e183aa58ab801f58ce57e2d66cf0bd35d1d64a8c522cb9a06a42f02d72e8c30db73e225f396f6c30
|
7
|
+
data.tar.gz: 1a46012cebf935add5b0ef0ae11b7db483057629c402e1912ee5763f03e1fb9b4156c00ec85e5a67816c8be3228d50f9aaceb54dc6327086603ad21725ae9d7b
|
data/bin/iptables-web
CHANGED
@@ -76,10 +76,10 @@ command :update do |c|
|
|
76
76
|
IptablesWeb::Configuration.load(options.config) if options.config
|
77
77
|
IptablesWeb::Model::Node.handshake do
|
78
78
|
rules = IptablesWeb::Model::AccessRule.all
|
79
|
+
iptables = IptablesWeb::Iptables.new
|
79
80
|
if options.print
|
80
|
-
say
|
81
|
+
say iptables.render(rules)
|
81
82
|
else
|
82
|
-
iptables = IptablesWeb::Iptables.new
|
83
83
|
iptables.restore(rules)
|
84
84
|
end
|
85
85
|
end
|
data/lib/iptables_web/version.rb
CHANGED