latik / xbt

Automatically exported from code.google.com/p/xbt
0 stars 0 forks source link

Blacklist using MySQL? #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is it possible to turn my whitelist stored in the database to a blacklist 
stored in the database?

Original issue reported on code.google.com by TechN9Ne...@gmail.com on 2 Nov 2011 at 8:35

GoogleCodeExporter commented 8 years ago
Yes, by editing the source.

BTW, this is not a 'question' tracker.

Original comment by olafvdspek on 2 Nov 2011 at 9:04

GoogleCodeExporter commented 8 years ago
Could you be a bit more specific? What do I need to edit exactly? I know the 
client ids are stored in the peer_id table in the database but the references 
in tracker_input.cpp also mention no_peer_id and m_no_peer_id.

Original comment by TechN9Ne...@gmail.com on 2 Nov 2011 at 9:11

GoogleCodeExporter commented 8 years ago
What whitelist are you talking about? 

Original comment by olafvdspek on 2 Nov 2011 at 9:13

GoogleCodeExporter commented 8 years ago
I would think it is the same one as mentioned in issue 5 here. You can see the 
source of tracer_input.cpp here:
http://pastebin.com/ZQsibaCv

Original comment by TechN9Ne...@gmail.com on 2 Nov 2011 at 9:18

GoogleCodeExporter commented 8 years ago
That's a custom version of the tracker. 

Original comment by olafvdspek on 2 Nov 2011 at 9:23

GoogleCodeExporter commented 8 years ago
Yes it is. It was written for project gazelle, but I got no help on there 
forums so I thought I would try here. Any help would be much appreciated. I 
have tried several things on my own, but with no luck.

Original comment by TechN9Ne...@gmail.com on 2 Nov 2011 at 9:48

GoogleCodeExporter commented 8 years ago
I'm not here to teach you C++. ;)

Original comment by olafvdspek on 2 Nov 2011 at 10:06

GoogleCodeExporter commented 8 years ago
I did not ask for a lesson in C++. I asked for help. I have experience in C++ 
and php, but I am no expert. I tried the obvious, line 82 I changed:
if (name == "peer_id" && value.length() == 20)
to
if (!name == "peer_id" && value.length() == 20)
but had no success. So I was kindly asking for help. 

Original comment by TechN9Ne...@gmail.com on 2 Nov 2011 at 10:14

GoogleCodeExporter commented 8 years ago
What kind of help? Writing C++?

Original comment by olafvdspek on 3 Nov 2011 at 10:35

GoogleCodeExporter commented 8 years ago
What kind of help, refer back to the first post...

Original comment by TechN9Ne...@gmail.com on 3 Nov 2011 at 3:27

GoogleCodeExporter commented 8 years ago
Yes, it's possible, no, I'm not writing the code for you or teaching you how to 
write that code.

Original comment by olafvdspek on 3 Nov 2011 at 3:28

GoogleCodeExporter commented 8 years ago
Nor did I ask you to. I am simply asking to be pointed in the right direction. 
What exactly do I need to? Why not offer something useful rather then wasting 
your time and mine?

Original comment by TechN9Ne...@gmail.com on 3 Nov 2011 at 3:31