Commit 652b49c0 authored by zeroleak's avatar zeroleak
Browse files

remote CLI setup: remove ending '/' causing connection failure

parent 98a5635d
...@@ -186,7 +186,12 @@ class InitPage extends Component<Props> { ...@@ -186,7 +186,12 @@ class InitPage extends Component<Props> {
} }
computeCliUrl() { computeCliUrl() {
const cliUrl = (this.state.cliLocal ? CLILOCAL_URL:this.state.currentCliHostPort) let cliUrl = (this.state.cliLocal ? CLILOCAL_URL:this.state.currentCliHostPort)
// remove ending '/' causing connection failure
if (cliUrl.substr(-1,1) === '/') {
cliUrl = cliUrl.substr(0, cliUrl.length-1);
}
return cliUrl return cliUrl
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment