- sendto_realops_snomask(SNO_GENERAL, L_ALL,\r
- "Connection from servername %s requires SSL/TLS but is plaintext",\r
- name);\r
- ilog(L_SERVER, "Access denied, requires SSL/TLS but is plaintext from %s", \r
- log_client_name(client_p, SHOW_IP));\r
-\r
- exit_client(client_p, client_p, client_p, "Access denied, requires SSL/TLS but is plaintext");\r
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,
+ "Connection from servername %s requires SSL/TLS but is plaintext",
+ name);
+ ilog(L_SERVER, "Access denied, requires SSL/TLS but is plaintext from %s",
+ log_client_name(client_p, SHOW_IP));
+
+ exit_client(client_p, client_p, client_p, "Access denied, requires SSL/TLS but is plaintext");
+ return 0;
+ }
+
+ /* require TS6 for direct links */
+ if(!IsCapable(client_p, CAP_TS6))
+ {
+ sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL,
+ "Link %s dropped, TS6 protocol is required", name);
+ exit_client(client_p, client_p, client_p, "Incompatible TS version");