add port from IP, use ip:port when adding router

This commit is contained in:
iBNu Maksum 2019-08-23 14:36:20 +07:00
parent 9b329ed9f5
commit 36043b3a36
2 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.DS_Store
.vscode/
ui/compiled/*.php
ui/cache/*.php

View File

@ -135,6 +135,11 @@ class Client
$crypto = N::CRYPTO_OFF,
$context = null
) {
if(strpos($host,":")>-1){
$part = explode(":",$host);
$host = $part[0];
$port = $part[1];
}
$this->com = new Communicator(
$host,
$port,