summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 58e1f9103..dcc33b22c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -145,6 +145,11 @@ void userrec::StartDNSLookup()
MyServer->AddResolver(res_reverse);
}
+UserResolver::UserResolver(userrec* user, std::string to_resolve, bool forward) : Resolver(to_resolve, forward), bound_user(user)
+{
+ this->bound_fd = user->fd;
+}
+
void UserResolver::OnLookupComplete(const std::string &result)
{
if ((!this->fwd) && (fd_ref_table[this->bound_fd] == this->bound_user))