xwmario / rutorrent

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

When dynamically getting the $scgi_port variable, torrents do not start automatically #822

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using 
<?php
preg_match("/scgi_port = \"127.0.0.1:([0-9]{4})\"/i", 
file_get_contents("/home/{$_SERVER['PHP_AUTH_USER']}/config.rc"), $port);

error_log("PORT: ".$port[1]); // yup the port is being set correctly

$scgi_port = $port[1];
?>
in the config.php file
2. Add a torrent via ruTorrent (tested on v3.5 and v3.4)
3. It does not start automatically..

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

The torrent when added via the ruTorrent interface should automatically start 
downloading, however it does not.
If I replace the `$scgi_port` variable with a physical number, such as 
`$scgi_port = 7120;` then it works perfectly normally.

What environment are you using?
1. My ruTorrent version is 3.5 and 3.4
2. My rTorrent version is 0.9.2 development version
3. I use web-server apache2 it version is 2.2 on OS Ubuntu 13.04 BETA
4. I use browser Chrome it version is latest on OS Windows 8/7
^ The problem occurs on all platforms.

Are some errors present in the web-server log?
Nope.

Are some errors present in the browser error console?
Nope.

Please provide any additional information below.

Original issue reported on code.google.com by spprt.sb...@gmail.com on 28 Apr 2013 at 1:58

GoogleCodeExporter commented 8 years ago
Ask your questions at the forum. This place is not a forum.

Original comment by novik65 on 29 Apr 2013 at 3:54