diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-01-08 17:08:02 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-01-08 17:08:02 +0000 |
commit | bed06ef08acd349bbdb8cbcb7f74343edcbb2984 (patch) | |
tree | 71e80c1e20e8a347010aafb0c4edcb1252f9c225 | |
parent | bafb292e20a7d7bab5fe637e4a74d6a95a2af2bc (diff) | |
download | acf-ipsec-tools-bed06ef08acd349bbdb8cbcb7f74343edcbb2984.tar.bz2 acf-ipsec-tools-bed06ef08acd349bbdb8cbcb7f74343edcbb2984.tar.xz |
Swap incoming and outgoing to match previous
-rw-r--r-- | ipsectools-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipsectools-model.lua b/ipsectools-model.lua index 9bd5f04..17d5e4d 100644 --- a/ipsectools-model.lua +++ b/ipsectools-model.lua @@ -84,10 +84,10 @@ local function racoonctl_table() local incoming = {} local outgoing = {} for l in string.gmatch(phase2details, "src [^\n]* "..dst.."\n") do - outgoing[#outgoing+1] = l + incoming[#incoming+1] = l end for l in string.gmatch(phase2details, "src "..dst.." [^\n]*\n") do - incoming[#incoming+1] = l + outgoing[#outgoing+1] = l end local phase2s = {{label="Outgoing", value=table.concat(outgoing)}, {label="Incoming", value=table.concat(incoming)}} entry['Phase2']=cfe({ |