Explorar o código

Enable host-user matching for bot links

Bryan Drewery %!s(int64=13) %!d(string=hai) anos
pai
achega
cd17e8db0c
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/dcc.c

+ 3 - 3
src/dcc.c

@@ -1825,9 +1825,9 @@ dcc_telnet_id(int idx, char *buf, int atr)
     if (!u)
       ok = 0;
 
-//    // Restrict connect to matching the user who they claim to be
-//    if (u && strcasecmp(nick, u->handle))
-//      ok = 0;
+    // Restrict connect to matching the user who they claim to be
+    if (u && strcasecmp(nick, u->handle))
+      ok = 0;
 
     if (!ok) {
       putlog(LOG_BOTS, "*", "Denied link to '%s': Host not recognized: %s", nick, dcc[idx].host);