fix: Tunnels being same name

This commit is contained in:
LukeGus
2025-11-02 16:14:31 -06:00
parent 73d06cb6af
commit 5dae1feca8
3 changed files with 17 additions and 5 deletions

View File

@@ -1409,7 +1409,11 @@ async function initializeAutoStartTunnels(): Promise<void> {
if (endpointHost) {
const tunnelConfig: TunnelConfig = {
name: `${host.name || `${host.username}@${host.ip}`}_${tunnelConnection.sourcePort}_${tunnelConnection.endpointPort}`,
name: `${host.name || `${host.username}@${host.ip}`}_${
tunnelConnection.sourcePort
}_${tunnelConnection.endpointHost}_${
tunnelConnection.endpointPort
}`,
hostName: host.name || `${host.username}@${host.ip}`,
sourceIP: host.ip,
sourceSSHPort: host.port,