Prepend machine name to firewall requests so that they are valid
authorClinton Ebadi <clinton@unknownlamer.org>
Sat, 7 Feb 2015 19:32:25 +0000 (14:32 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Sat, 7 Feb 2015 19:32:25 +0000 (14:32 -0500)
The firewall rules are a lie or something like that.

sec.mlt

diff --git a/sec.mlt b/sec.mlt
index 3023bda..1525a3c 100644 (file)
--- a/sec.mlt
+++ b/sec.mlt
@@ -84,7 +84,7 @@ elseif $"cmd" = "rule2" then
        val rule = $"rule";
 
        if Sec.validRule rule then
-               val id = Sec.Req.add {usr = you, node = nodeNum, data = String.concat ["Add firewall rule \"", uname, " ", rule, "\""], msg = $"msg"};
+               val id = Sec.Req.add {usr = you, node = nodeNum, data = String.concat ["Add firewall rule \"", nodeName, " ", uname, " ", rule, "\""], msg = $"msg"};
                if not (Sec.Req.notifyNew id) then
                        %><h3>Error sending e-mail notification</h3><%
                end