Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrape method trims custom announcement path in URI #28

Open
d47081 opened this issue Aug 27, 2023 · 0 comments
Open

Scrape method trims custom announcement path in URI #28

d47081 opened this issue Aug 27, 2023 · 0 comments

Comments

@d47081
Copy link

d47081 commented Aug 27, 2023

I'm getting following error for one of my trackers, that has announce/scrape listener placed in sub-folder like

http://somehost:80/directory/announce

$scraper->get_errors() 

Array
(
    [0] => Invalid scrape connection (somehost:80).
)

after enable file_get_contents get output

PHP Warning:  file_get_contents(http://somehost:80/scrape?info_hash=somehash): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

in other words, my original address was replaced to the domain root

http://somehost:80/announce

Other trackers, that stores theirs announce listeners in the root - works well, suppose that's get_passkey issue where parser confuses by regex at line

if ( ! is_null( $path ) && preg_match( '/[a-z0-9]{32}/i', $path, $matches ) ) {
@d47081 d47081 changed the title Scrape method trims announce path prefix in scrapper URI Scrape method trims custom announcement path in URI Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant