borgwarehouse/helpers/functions/lanCommandOption.js

14 lines
418 B
JavaScript
Raw Normal View History

2023-09-05 22:53:23 +02:00
export default function lanCommandOption(wizardEnv, lanCommand) {
let FQDN;
2023-09-05 22:53:23 +02:00
let SSH_SERVER_PORT;
if (lanCommand && wizardEnv.FQDN_LAN && wizardEnv.SSH_SERVER_PORT_LAN) {
FQDN = wizardEnv.FQDN_LAN;
2023-09-05 22:53:23 +02:00
SSH_SERVER_PORT = wizardEnv.SSH_SERVER_PORT_LAN;
} else {
FQDN = wizardEnv.FQDN;
2023-09-05 22:53:23 +02:00
SSH_SERVER_PORT = wizardEnv.SSH_SERVER_PORT;
}
return { FQDN, SSH_SERVER_PORT };
2023-09-05 22:53:23 +02:00
}