From c742660a5d5245e4bae7fa6cb7b022590aad1658 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 24 Dec 2019 15:08:02 +1000 Subject: Better handling of redirects to different hosts. --- apt-panopticommon.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apt-panopticommon.lua') 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 = APT.verbosity = -1 APT.origin = false +APT.redir = false APT.keep = false APT.options = @@ -122,6 +123,9 @@ APT.parseArgs = function(args) elseif "-o" == a then APT.origin = true -- Not adding to sendArgs. + elseif "-r" == a then + APT.redir = true + sendArgs = sendArgs .. a .. " " elseif "--" == a:sub(1, 2) then local s, e = a:find("=") if nil == s then e = -1 end -- cgit v1.1