chore: implement constants
This commit is contained in:
parent
5a65b6e91d
commit
4196ef3554
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
const validator = require("validator")
|
const validator = require("validator")
|
||||||
const crypto = require("crypto")
|
const crypto = require("crypto")
|
||||||
const { createNamespacedDebug } = require("./logger")
|
const { createNamespacedDebug } = require("./logger")
|
||||||
|
const { DEFAULTS } = require("./constants")
|
||||||
|
|
||||||
const debug = createNamespacedDebug("utils")
|
const debug = createNamespacedDebug("utils")
|
||||||
|
|
||||||
|
@ -67,7 +68,7 @@ function getValidatedHost(host) {
|
||||||
* @returns {number} - The validated port number.
|
* @returns {number} - The validated port number.
|
||||||
*/
|
*/
|
||||||
function getValidatedPort(portInput) {
|
function getValidatedPort(portInput) {
|
||||||
const defaultPort = 22
|
const defaultPort = DEFAULTS.SSH_PORT
|
||||||
const port = defaultPort
|
const port = defaultPort
|
||||||
debug("getValidatedPort: input: %O", portInput)
|
debug("getValidatedPort: input: %O", portInput)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue