eith0s / rutorrent

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

Check_Port Plugin Fails #840

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Check_port plugin fails to get port status, canyouseeme appears to have 
changed something on their site.

What is the expected output? What do you see instead?

What environment are you using?
1. My ruTorrent version is 3.5 svn 2319
2. My rTorrent version is 0.9.2

http://www.canyouseeme.org/?port=12345&submit=Check returns no result, form 
needs to be submitted manually. 

Original issue reported on code.google.com by kolork...@googlemail.com on 15 Jul 2013 at 12:29

GoogleCodeExporter commented 8 years ago
>My ruTorrent version is 3.5 svn 2319

This can't be true. Because corresponding plugin was fixed in this revision.

Original comment by novik65 on 15 Jul 2013 at 5:05

GoogleCodeExporter commented 8 years ago
1. Sorry for my English, its only School-English

It´s a big Lie to say the Bug was fixed...
I fixed the Bug byself...
The Bug is located in the action.php
when you will fix it you have to change a small part of the code.
Correct is the syntax below:

@$client->fetch("http://www.canyouseeme.org","POST","application/x-www-form-urle
ncoded","port=".$port."&submit=Check+Your+Port");

I attached the action.php with the correct code.
Feel free to use it, and the author from the plugin can also use the correction 
WITHOUT thank or something else.

Original comment by miata...@gmail.com on 11 Sep 2013 at 4:23

Attachments:

GoogleCodeExporter commented 8 years ago
And now try to find difference between your code and this:
http://code.google.com/p/rutorrent/source/browse/trunk/plugins/check_port/action
.php

Original comment by novik65 on 11 Sep 2013 at 4:58

GoogleCodeExporter commented 8 years ago
OK, seems i have look to an older Version.
I´m Sorry and Beg your Pardon!

For all: It´s no difference between my Code and the Official-Code shown by the 
link provided by novik65
The Original-Code is a few days older, also the releaser has made a very fine 
work.

Original comment by miata...@gmail.com on 11 Sep 2013 at 7:41

GoogleCodeExporter commented 8 years ago
For what's it's worth, the plugin still doesn't work properly. For example, the 
following fails to obtain the current port it's listening on if a range is set:

$port = rTorrentSettings::get()->port;

It simply returns & checks the first port in the range, and not the one which 
is being listened on.

Original comment by agivens0...@gmail.com on 12 May 2014 at 12:22