Parcourir la source

Adapt to Lua API changes in HAProxy 1.6.3

Jan Broer il y a 10 ans
Parent
commit
ecd40596c0
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      README.md
  2. 2 2
      acme-http01-webroot.lua

+ 1 - 1
README.md

@@ -22,7 +22,7 @@ No need to leverage a backend webserver for the trivial task of serving a key au
 
 ### Prerequesites
 
-You need to be rolling HAProxy version 1.6 or later with Lua support enabled.
+You need to be rolling HAProxy version `1.6.3` or later with Lua support enabled.
 To check if your HAProxy binary was compiled with Lua support run the following command:
 
 	haproxy -vv

+ 2 - 2
acme-http01-webroot.lua

@@ -23,7 +23,7 @@
 --
 
 acme = {}
-acme.version = "0.1.0"
+acme.version = "0.1.1"
 
 --
 -- Configuration
@@ -47,7 +47,7 @@ end
 --
 acme.http01 = function(applet)
 	local response = ""
-	local reqPath = applet.sf:path()
+	local reqPath = applet.path
 	local src = applet.sf:src()
 	local token = reqPath:match( ".+/(.*)$" )