Skip to content

Commit

Permalink
take host + port instead of url
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptochangements34 authored Apr 19, 2018
1 parent cf360c7 commit 694bb85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/library/monero.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ class monero{
502 => '502 Bad Gateway',
503 => '503 Service Unavailable'
);
public function __construct($pUrl, $pUser = null, $pPass = null)
public function __construct($host, $port, $pUser = null, $pPass = null)
{
$this->validate(false === extension_loaded('curl'), 'The curl extension must be loaded to use this class!');
$this->validate(false === extension_loaded('json'), 'The json extension must be loaded to use this class!');
$this->url = $pUrl;
$this->url = "http://" . $host . ":" . $port . "/json_rpc";
$this->username = $pUser;
$this->password = $pPass;
}
Expand Down Expand Up @@ -280,4 +280,4 @@ public function get_bulk_payments($payment_id, $min_block_height)


}

0 comments on commit 694bb85

Please sign in to comment.