PPK
Administrator
Emperor
   
Karma: +199/-16
Offline
Posts: 1 097
PtokaX "developer"
|
 |
« on: December 16, 2007, 01:49:15 AM » |
|
-- Block of clients with buggy supports -- Created for fun and to force client creators to fix bug caused by bad quack coding.
function SupportsArrival(curUser, sData) if string.sub(sData, string.len(sData)-1, string.len(sData)-1) == " " then Core.SendToUser(curUser, "<"..Core.GetHubSecAlias().."> Your client is buggy and sent bad $Supports command.") Core.SendToUser(curUser, "<"..Core.GetHubSecAlias().."> Please report that bug to your client creator and wait for fixed version.") Core.SendToUser(curUser, "<"..Core.GetHubSecAlias().."> If you don't want to wait or your client creator is not able to fix that bug then please change client.") Core.Disconnect(curUser) end end
|
|
|
|
|
Logged
|
|
|
|
|
bastya_elvtars
|
 |
« Reply #1 on: December 16, 2007, 01:06:11 PM » |
|
Yes, but not in a hardcoded way. Or at least not for the first time. 
|
|
|
|
|
Logged
|
|
|
|
|
CrazyGuy
|
 |
« Reply #2 on: December 16, 2007, 01:48:55 PM » |
|
May i suggest a Core.Kick instead of a Core.Disconnect to avoid hammering ? 
|
|
|
|
|
Logged
|
|
|
|
|
bastya_elvtars
|
 |
« Reply #3 on: December 16, 2007, 02:01:34 PM » |
|
May i suggest a Core.Kick instead of a Core.Disconnect to avoid hammering ?  I object; hammering will lead to autoban anyway. And kicking would disappoint the user too much IMHO.
|
|
|
|
|
Logged
|
|
|
|
|
CrazyGuy
|
 |
« Reply #4 on: December 16, 2007, 07:33:02 PM » |
|
I object; hammering will lead to autoban anyway. And kicking would disappoint the user too much IMHO.
i don't really see why kicking would disappoint more than an autoban for hammering
|
|
|
|
|
Logged
|
|
|
|
|
TwîsTèd-dèvîl
|
 |
« Reply #5 on: December 16, 2007, 07:35:43 PM » |
|
If kicking doesnt that mean user has to be in hub ... therefore defeting the object
|
|
|
|
|
Logged
|
|
|
|
|
ruler
|
 |
« Reply #6 on: December 16, 2007, 10:16:14 PM » |
|
i voted 'yes' but thats because i'd like to see the back of all dodgy clients 
|
|
|
|
|
Logged
|
|
|
|
|
TTB
|
 |
« Reply #7 on: December 17, 2007, 10:08:01 AM » |
|
Voted: Only as option with default enabled.
I don't know which clients has buggy supports. The hub-runner should manage it if needed, imo.
|
|
|
|
|
Logged
|
TTB
(¯ ·.¸¸.-> Admin @ Surfnet Dutch DVD Hub <-.¸¸.·´¯)
|
|
|
|
Thor
|
 |
« Reply #8 on: December 17, 2007, 12:58:37 PM » |
|
The only one client which sends corrupted $Supports string is rmDC.
|
|
|
|
|
Logged
|
May the force be with you
|
|
|
PPK
Administrator
Emperor
   
Karma: +199/-16
Offline
Posts: 1 097
PtokaX "developer"
|
 |
« Reply #9 on: December 17, 2007, 01:09:32 PM » |
|
No, it is not only one client  But yes this script block rmDC++ too 
|
|
|
|
|
Logged
|
|
|
|
PPK
Administrator
Emperor
   
Karma: +199/-16
Offline
Posts: 1 097
PtokaX "developer"
|
 |
« Reply #10 on: January 05, 2008, 10:59:00 PM » |
|
36.8% for yes, 36.8% for option with enabled, 26.3% for option with disabled. Who really test that script ? Why nobody complains that this script blocking DC++ and most of DC++ modifications ? Who really want to block them ? 
|
|
|
|
|
Logged
|
|
|
|
|
Mutor
|
 |
« Reply #11 on: January 05, 2008, 11:17:08 PM » |
|
Well the poll itself has little to do with your script. Asking if users want bad supports blocked does not infer you want them to test your script. I'm not sure why blocking this is even a question. Do you allow bad client tags? Do you allow invalid MyINFO? Did you put either of those to a vote? Not AFAIK, but you do have an option to allow clients without tags. So in keeping with tradition, provide it as an option. 
|
|
|
|
|
Logged
|
|
|
|
PPK
Administrator
Emperor
   
Karma: +199/-16
Offline
Posts: 1 097
PtokaX "developer"
|
 |
« Reply #12 on: January 05, 2008, 11:39:05 PM » |
|
Tag is optional because it is not part of protocol, it is ugly description hack by quack. This block is question, because that bug is in most actually used clients 
|
|
|
|
|
Logged
|
|
|
|
|
CrazyGuy
|
 |
« Reply #13 on: January 06, 2008, 11:07:17 AM » |
|
36.8% for yes, 36.8% for option with enabled, 26.3% for option with disabled. Who really test that script ? Why nobody complains that this script blocking DC++ and most of DC++ modifications ? Who really want to block them ?  I haven't tested that script, but I can see pretty clearly what it does  As Mutor said, the question asked in the poll is taken as stand-alone. I would encourage such a block as default if it wasn't that it would mean so many current clients will not be allowed in because of it  Therefor I'm sticking with my vote of making it optional
|
|
|
|
|
Logged
|
|
|
|
PPK
Administrator
Emperor
   
Karma: +199/-16
Offline
Posts: 1 097
PtokaX "developer"
|
 |
« Reply #14 on: July 04, 2008, 04:06:51 PM » |
|
Voting locked, will be implemented in next PtokaX version as option with default enabled 
|
|
|
|
|
Logged
|
|
|
|
|
CrazyGuy
|
 |
« Reply #15 on: July 04, 2008, 09:20:07 PM » |
|
good 
|
|
|
|
|
Logged
|
|
|
|
|
ATAG
|
 |
« Reply #16 on: October 12, 2008, 11:57:22 PM » |
|
Voting locked, will be implemented in next PtokaX version as option with default enabled  How can i disable it? 
|
|
|
|
|
Logged
|
|
|
|
|
Mutor
|
 |
« Reply #17 on: October 13, 2008, 12:45:34 AM » |
|
There will be an option for you to toggle once it's implemented. First the horse, then the cart. 
|
|
|
|
|
Logged
|
|
|
|
|
ATAG
|
 |
« Reply #18 on: October 13, 2008, 01:09:16 AM » |
|
Then what is "Bad $Supports from <unknown> (xxx.xxx.xxx.xxx) - user closed." in the log?
|
|
|
|
|
Logged
|
|
|
|
|
Mutor
|
 |
« Reply #19 on: October 13, 2008, 01:13:49 AM » |
|
Just what it seems. AFAIK, there is no option to enable/disable yet. Correct me if I'm wrong. I can take it. 
|
|
|
|
|
Logged
|
|
|
|
PPK
Administrator
Emperor
   
Karma: +199/-16
Offline
Posts: 1 097
PtokaX "developer"
|
 |
« Reply #20 on: October 13, 2008, 01:36:20 AM » |
|
Then what is "Bad $Supports from <unknown> (xxx.xxx.xxx.xxx) - user closed." in the log?
That is rmDC++, client sending more buggy supports that this block will disallow 
|
|
|
|
|
Logged
|
|
|
|
|