mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 18:24:32 +02:00
add port from IP, use ip:port when adding router
This commit is contained in:
parent
9b329ed9f5
commit
36043b3a36
2 changed files with 8 additions and 2 deletions
|
@ -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,
|
||||
|
@ -151,7 +156,7 @@ class Client
|
|||
if ((!$persist
|
||||
|| !($old = $this->com->getTransmitter()->lock(S::DIRECTION_ALL)))
|
||||
&& $this->com->getTransmitter()->isFresh()
|
||||
) {
|
||||
) {
|
||||
if (!static::login($this->com, $username, $password, $timeout)) {
|
||||
$this->com->close();
|
||||
throw new DataFlowException(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue