add port from IP, use ip:port when adding router
This commit is contained in:
parent
9b329ed9f5
commit
36043b3a36
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.vscode/
|
.vscode/
|
||||||
ui/compiled/*.php
|
ui/compiled/*.php
|
||||||
|
ui/cache/*.php
|
@ -135,6 +135,11 @@ class Client
|
|||||||
$crypto = N::CRYPTO_OFF,
|
$crypto = N::CRYPTO_OFF,
|
||||||
$context = null
|
$context = null
|
||||||
) {
|
) {
|
||||||
|
if(strpos($host,":")>-1){
|
||||||
|
$part = explode(":",$host);
|
||||||
|
$host = $part[0];
|
||||||
|
$port = $part[1];
|
||||||
|
}
|
||||||
$this->com = new Communicator(
|
$this->com = new Communicator(
|
||||||
$host,
|
$host,
|
||||||
$port,
|
$port,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user