diff options
Diffstat (limited to 'auth')
-rw-r--r-- | auth/ssh.php | 2 | ||||
-rw-r--r-- | auth/telnet.php | 2 |
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() { |