Skip to content

Linux info

Johan edited this page Jun 11, 2023 · 5 revisions

The plugin and rlpi service can work on Linux. However, caveats follow.

The plugin should work fine if you have bakkesmod working with Proton. I have not tested it yet though.

As for the script, and as the API disclaimer states, the current solution is basically a hack that coincidentally works around certain access restrictions. This hack has issues.

The major problem that you can face on linux is the requests can fail with a 403 forbidden error. I have yet to pin down the issue, but I believe it has to do with the version of a curl dependency, potentially openssl. If you are on a bleeding edge distro like arch, you should have no issues (for now). However, debian systems for example will have this issue as of 06/2023.

You may opt to manually build curl and it's dependencies such that you will have the same or newer versions and (probably) identical protocols/features: YhOeUME

If you do do this, and figure out the problematic module, it would be very cool to let me know.

An alternative kind-of solution is to use the httpx library and replace the curl_conf function in webdriver/curl_conf.py with

import httpx
import random


def curl_conf(url, useragentarray):
    headers = {
        'User-Agent': random.choice(useragentarray),
        'Referer': 'https://rocketleague.tracker.network/'
    }
    
    with httpx.Client(default_encoding="utf-8", verify=False) as client:
        r = client.get(url, headers=headers)

    # print(r.status_code)
    # print(r.http_version)
    return r.content

The catch is that the website certificate is not checked here. I have not found a better (functioning) way to ping this API with httpx. Nor do I know why curl --insecure fails universally, but this doesn't.

Clone this wiki locally