summaryrefslogtreecommitdiff
path: root/lib/LuaHttp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LuaHttp.cc')
-rw-r--r--lib/LuaHttp.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc
index d3cbd2a..736739e 100644
--- a/lib/LuaHttp.cc
+++ b/lib/LuaHttp.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: LuaHttp.cc,v 1.15 2007-06-11 21:24:48 pixel Exp $ */
+/* $Id: LuaHttp.cc,v 1.16 2007-06-17 15:21:50 pixel Exp $ */
#include "md5.h"
#include "Domain.h"
@@ -348,6 +348,22 @@ class LuaDomain : public Domain {
L->push("password");
L->push(req.password);
L->settable();
+
+ L->push("lip");
+ L->push((lua_Number) req.lip);
+ L->settable();
+
+ L->push("dip");
+ L->push((lua_Number) req.dip);
+ L->settable();
+
+ L->push("lport");
+ L->push((lua_Number) req.lport);
+ L->settable();
+
+ L->push("dport");
+ L->push((lua_Number) req.dport);
+ L->settable();
LuaHttpResponse r(res);
r.push(L);