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

Tracker checker supports more service address formats #1041

Commits on Sep 12, 2024

  1. feat: [torrust#675] tracker checker supports more service address for…

    …mats
    
    All the following URL for UDP trackers are allow now:
    
    ```console
    TORRUST_CHECKER_CONFIG='{
        "udp_trackers": [
    	"127.0.0.1:6969",
    	"127.0.0.1:6969/",
    	"127.0.0.1:6969/announce",
    	"localhost:6969",
    	"localhost:6969/",
    	"localhost:6969/announce",
    	"udp://127.0.0.1:6969",
    	"udp://127.0.0.1:6969/",
    	"udp://127.0.0.1:6969/announce",
    	"udp://localhost:6969",
    	"udp://localhost:6969/",
    	"udp://localhost:6969/announce"
        ],
        "http_trackers": [],
        "health_checks": []
    }' cargo run --bin tracker_checker
    ```
    
    NOTICE: the client will resolve the domain to a socket address if
    needed.
    josecelano committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    520026d View commit details
    Browse the repository at this point in the history
  2. feat: [torrust#675] tracker checker (HTTP tracker) supports more serv…

    …ice address formats
    
    Now it supports a path prefix. It will be remove by the client to build
    the "scrape" URLs.
    
    This type of URL is very common in tracker lists like in
    https://newtrackon.com/.
    
    ```console
    TORRUST_CHECKER_CONFIG='{
        "udp_trackers": [],
        "http_trackers": [
    	"http://127.0.0.1:7070",
    	"http://127.0.0.1:7070/",
    	"http://127.0.0.1:7070/announce"
        ],
        "health_checks": []
    }' cargo run --bin tracker_checker
    ```
    josecelano committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    faee02f View commit details
    Browse the repository at this point in the history