fwtool: fix ipv6 localhost release_20200227-1
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 28 Feb 2020 02:02:54 +0000 (21:02 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 28 Feb 2020 02:02:54 +0000 (21:02 -0500)
We were attempting to create rules for :::1, when it should have been ::1

src/plugins/firewall.sml

index ec5ad54..642379d 100644 (file)
@@ -165,8 +165,8 @@ fun generateNodeFermRules rules  =
                  | Server (ports, hosts) => (confLine_in (uname, rule); confLine_in_v6 (uname, rule))
                  | LocalServer ports => (insertConfLine (uname, ruleNode, Client (ports, ["127.0.0.1/8"]));
                                          insertConfLine (uname, ruleNode, Server (ports, ["127.0.0.1/8"]));
-                                         insertConfLine (uname, ruleNode, Client (ports, [":::1"]));
-                                         insertConfLine (uname, ruleNode, Server (ports, [":::1"])))
+                                         insertConfLine (uname, ruleNode, Client (ports, ["::1"]));
+                                         insertConfLine (uname, ruleNode, Server (ports, ["::1"])))
                  | ProxiedServer ports => if (fn FirewallNode r => r) ruleNode = Slave.hostname () then
                                               (insertConfLine (uname, ruleNode, Server (ports, ["$WEBNODES"]));
                                                insertConfLine (uname, ruleNode, Client (ports, [fwnode_domain ruleNode])))