|
|
@@ -1202,7 +1202,7 @@ dcc_telnet(int idx, char *buf, int i)
|
|
|
IP ip;
|
|
|
port_t port;
|
|
|
int j = 0, sock;
|
|
|
- char s[UHOSTLEN + 1] = "";
|
|
|
+ char s[UHOSTLEN + 1] = "", x[1024] = "";
|
|
|
|
|
|
if (dcc_total + 1 > max_dcc) {
|
|
|
j = answer(dcc[idx].sock, s, &ip, &port, 0);
|
|
|
@@ -1234,6 +1234,12 @@ dcc_telnet(int idx, char *buf, int i)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ sprintf(x, "-telnet!telnet@%s", iptostr(htonl(ip)));
|
|
|
+ if (match_ignore(x) || detect_telnet_flood(x)) {
|
|
|
+ killsock(sock);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
i = new_dcc(&DCC_DNSWAIT, sizeof(struct dns_info));
|
|
|
dcc[i].sock = sock;
|
|
|
dcc[i].addr = ip;
|