summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-06-14 23:17:22 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-06-14 23:17:22 +0200
commitf97dcdd539407d5987236bdffacc093cc790d373 (patch)
treec39dcd05d218a3a7d6e4638b0bbaf83bdfea9088 /auth
parent6f3b61ae16cc04c4b4f036a795842ef81d210635 (diff)
Add preliminary support for Cisco routers.
Need to be tested.
Diffstat (limited to 'auth')
-rw-r--r--auth/ssh.php2
-rw-r--r--auth/telnet.php2
2 files changed, 2 insertions, 2 deletions
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() {