summaryrefslogtreecommitdiff
path: root/auth/ssh.php
diff options
context:
space:
mode:
Diffstat (limited to 'auth/ssh.php')
-rw-r--r--auth/ssh.php2
1 files changed, 1 insertions, 1 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() {