projects
/
lua-squid-acl-helper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Добавлено кеширование привязки IP-mac.
[lua-squid-acl-helper.git]
/
src
/
helper.lua
diff --git
a/src/helper.lua
b/src/helper.lua
index 79711e2370098ff47aad2c683743744d1d22b709..53712c4644379dd66b376d7c23877b36d5475d4f 100755
(executable)
--- a/
src/helper.lua
+++ b/
src/helper.lua
@@
-25,7
+25,9
@@
function main()
while true do
str=io.read()
vals = str:split(" ")
while true do
str=io.read()
vals = str:split(" ")
- status, res = pcall(connection.auth,vals[1],vals[2],vals[3])
+-- status, res = pcall(connection.auth,vals[1],vals[2],vals[3])
+ status = 1
+ res = connection.auth(vals[1],vals[2],vals[3])
if status then
if res and res ~= "" then
io.write("OK user="..res.."\n")
if status then
if res and res ~= "" then
io.write("OK user="..res.."\n")