diff options
Diffstat (limited to '')
-rw-r--r-- | apt-panopticommon.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua index dddcc9c..4a1a5e7 100644 --- a/apt-panopticommon.lua +++ b/apt-panopticommon.lua | |||
@@ -113,6 +113,12 @@ APT.options = | |||
113 | -- "Prometheus", | 113 | -- "Prometheus", |
114 | }, | 114 | }, |
115 | }, | 115 | }, |
116 | cgi = | ||
117 | { | ||
118 | typ = "boolean", | ||
119 | help = "", | ||
120 | value = false, | ||
121 | }, | ||
116 | } | 122 | } |
117 | 123 | ||
118 | APT.args = {} | 124 | APT.args = {} |
@@ -149,6 +155,9 @@ APT.parseArgs = function(args) | |||
149 | elseif "-r" == a then | 155 | elseif "-r" == a then |
150 | APT.redir = true | 156 | APT.redir = true |
151 | sendArgs = sendArgs .. a .. " " | 157 | sendArgs = sendArgs .. a .. " " |
158 | elseif "--cgi" == a then | ||
159 | APT.options.cgi.value = true | ||
160 | sendArgs = sendArgs .. a .. " " | ||
152 | elseif "--low" == a then | 161 | elseif "--low" == a then |
153 | APT.options.bandwidth.value = 0 | 162 | APT.options.bandwidth.value = 0 |
154 | APT.options.timeout.value = 2 | 163 | APT.options.timeout.value = 2 |