From f97dcdd539407d5987236bdffacc093cc790d373 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Sat, 14 Jun 2014 23:17:22 +0200 Subject: Add preliminary support for Cisco routers. Need to be tested. --- auth/ssh.php | 2 +- auth/telnet.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'auth') diff --git a/auth/ssh.php b/auth/ssh.php index 07a51d2..2b67541 100644 --- a/auth/ssh.php +++ b/auth/ssh.php @@ -27,7 +27,7 @@ final class SSH extends Authentication { public function __construct($config) { parent::__construct($config); - $this->port = isset($this->config['port']) ? $this->config['port'] : 22; + $this->port = isset($this->config['port']) ? (int) $this->config['port'] : 22; } protected function check_config() { diff --git a/auth/telnet.php b/auth/telnet.php index 6e4064e..f490148 100644 --- a/auth/telnet.php +++ b/auth/telnet.php @@ -27,7 +27,7 @@ final class Telnet extends Authentication { public function __construct($config) { parent::__construct($config); - $this->port = isset($this->config['port']) ? $this->config['port'] : 23; + $this->port = isset($this->config['port']) ? (int) $this->config['port'] : 23; } protected function check_config() { -- cgit v1.2.3