Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit 63b3fdd

Browse files
committed
BUG/MINOR: fix sub string value in ACME.proxy_url
This patch fixes the value of the string
1 parent b841321 commit 63b3fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acme.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ end
101101
--- Adapt resource URLs when going through HAProxy
102102
function ACME.proxy_url(self, url)
103103
if url:sub(1, #self.conf.ca.uri) == self.conf.ca.uri then
104-
return string.format("%s%s", self.conf.ca.proxy_uri, url:sub(#self.conf.ca.uri))
104+
return string.format("%s%s", self.conf.ca.proxy_uri, url:sub(#self.conf.ca.uri + 1))
105105
else
106106
return url
107107
end

0 commit comments

Comments
 (0)