update sftp connection to hostname from /etc/hosts

This commit is contained in:
MCHost
2025-06-25 04:58:55 -04:00
parent 949feda112
commit 591438bdb1

View File

@ -636,9 +636,10 @@ document.addEventListener('DOMContentLoaded', () => {
// SFTP Client to WORK! Even if SFTP Holesail ports are down! // SFTP Client to WORK! Even if SFTP Holesail ports are down!
// To Revert, move hostname to message.data.hostname and port to message.data.port // To Revert, move hostname to message.data.hostname and port to message.data.port
// Doing so will configure the connection to the Jump node. // Doing so will configure the connection to the Jump node.
// state.user = /etc/hosts assignment on the host OS.
if (message.data?.hostname && message.data?.port && message.data?.user && message.data?.password) { if (message.data?.hostname && message.data?.port && message.data?.user && message.data?.password) {
sftpCredentials = { sftpCredentials = {
hostname: message.data.ipAddress, hostname: state.user,
port: 22, port: 22,
user: message.data.user, user: message.data.user,
password: message.data.password password: message.data.password