Skip to content

Commit

Permalink
Ability to change the host port.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcHagen committed Feb 15, 2021
1 parent 1d23c95 commit f6dbb78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
---
## [Unreleased]

## New Features
* Ability to change the host port.

---
## [1.0.5] (2021-02-12)

Expand Down
13 changes: 11 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,14 @@ class EpiphanPearl extends instanceSkel {
default: '127.0.0.1',
regex: this.REGEX_IP,
},
{
type: 'textinput',
id: 'host_port',
label: 'Target Port',
width: 6,
default: '80',
regex: this.REGEX_PORT,
},
{
type: 'textinput',
id: 'username',
Expand All @@ -278,7 +286,7 @@ class EpiphanPearl extends instanceSkel {
id: 'password',
label: 'Password',
width: 6,
default: 'changeme',
default: '',
},
];
}
Expand Down Expand Up @@ -606,7 +614,8 @@ class EpiphanPearl extends instanceSkel {
}) {
const self = this;
const apiHost = this.config.host,
baseUrl = 'http://' + apiHost + ':8850';
apiPort = this.config.host_port,
baseUrl = 'http://' + apiHost + ':' + apiPort;

if (url === null || url === '') {
this._setStatus(this.STATUS_ERROR, 'No URL given for _sendRequest');
Expand Down

0 comments on commit f6dbb78

Please sign in to comment.