diff options
| author | onefang | 2019-12-24 15:08:02 +1000 |
|---|---|---|
| committer | onefang | 2019-12-24 15:08:02 +1000 |
| commit | c742660a5d5245e4bae7fa6cb7b022590aad1658 (patch) | |
| tree | 4ad75b5194968944f6d2dca516b0546ef63ae56d /apt-panopticommon.lua | |
| parent | Minor tweaks to the redirection log messages. (diff) | |
| download | apt-panopticon-c742660a5d5245e4bae7fa6cb7b022590aad1658.zip apt-panopticon-c742660a5d5245e4bae7fa6cb7b022590aad1658.tar.gz apt-panopticon-c742660a5d5245e4bae7fa6cb7b022590aad1658.tar.bz2 apt-panopticon-c742660a5d5245e4bae7fa6cb7b022590aad1658.tar.xz | |
Better handling of redirects to different hosts.
Diffstat (limited to 'apt-panopticommon.lua')
| -rw-r--r-- | apt-panopticommon.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua index eab901e..accfcd5 100644 --- a/apt-panopticommon.lua +++ b/apt-panopticommon.lua | |||
| @@ -21,6 +21,7 @@ APT.notExist = | |||
| 21 | 21 | ||
| 22 | APT.verbosity = -1 | 22 | APT.verbosity = -1 |
| 23 | APT.origin = false | 23 | APT.origin = false |
| 24 | APT.redir = false | ||
| 24 | APT.keep = false | 25 | APT.keep = false |
| 25 | 26 | ||
| 26 | APT.options = | 27 | APT.options = |
| @@ -122,6 +123,9 @@ APT.parseArgs = function(args) | |||
| 122 | elseif "-o" == a then | 123 | elseif "-o" == a then |
| 123 | APT.origin = true | 124 | APT.origin = true |
| 124 | -- Not adding to sendArgs. | 125 | -- Not adding to sendArgs. |
| 126 | elseif "-r" == a then | ||
| 127 | APT.redir = true | ||
| 128 | sendArgs = sendArgs .. a .. " " | ||
| 125 | elseif "--" == a:sub(1, 2) then | 129 | elseif "--" == a:sub(1, 2) then |
| 126 | local s, e = a:find("=") | 130 | local s, e = a:find("=") |
| 127 | if nil == s then e = -1 end | 131 | if nil == s then e = -1 end |
