Changeset 2643
- Timestamp:
- 06/22/12 12:51:35 (11 months ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/lua-auth.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/lua-auth.cc
r2631 r2643 160 160 } 161 161 162 static int ldp_getRemote(lua_State *L) { 163 DNSPacket *p=ldp_checkDNSPacket(L); 164 lua_pushstring(L, p->getRemote().c_str()); 165 return 1; 166 } 167 162 168 static const struct luaL_reg ldp_methods [] = { 163 169 {"setRcode", ldp_setRcode}, 164 170 {"getQuestion", ldp_getQuestion}, 165 171 {"addRecords", ldp_addRecords}, 172 {"getRemote", ldp_getRemote}, 166 173 {NULL, NULL} 167 174 };