Skip to content

rutorrent - don't hardcode endpoint (uri) #452

Closed

Description

@al3xLvs

My RPC url doesn't finish by https://domain.tld/RPC2 but by https://domain.tld/RPC

We need to fix this code.
file: ruTorrent.php

    public function url($endpoint)
    {
        return parent::normaliseurl($this->config->url).$endpoint;
    }

    public function getXMLRPCData($method)
    {
        ...
        $res = parent::execute($this->url('RPC2'), $this->attrs, $this->vars);
        ...
    }

Activity

  1. KodeStar commented on Mar 6, 2020

    @KodeStar
    Member

    v3 will work differently and URLs wont be hardcoded, the url will be automatically put in but you will be able to completely change the url if you want/need to. If you look at https://apps.heimdall.site/applications.json the sabnzbd one is in the new format that app.json will use to facilitate this. https://drive.google.com/file/d/11TIVFsKf4MA7r_3zJDvkkyvQklHPHYYr/view will give you an idea of how that will work

  2. locked and limited conversation to collaborators on Mar 13, 2022
  3. converted this issue into a discussion #752 on Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions