From d1bb74d84bad36c9b276b97573e9d6c897fa2c45 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sun, 28 Jan 2024 12:46:56 +0100 Subject: [PATCH] fix: refs #5483 run realm param code fix --- myt-run.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/myt-run.js b/myt-run.js index 42880eb..dd53f0f 100644 --- a/myt-run.js +++ b/myt-run.js @@ -126,7 +126,9 @@ class Run extends Command { }); if (opts.ci) { - dbConfig.host = netSettings.Networks[networkName].IPAddress; + dbConfig.host = network + ? netSettings.Networks[network].IPAddress + : netSettings.Gateway; dbConfig.port = 3306; } else dbConfig.port = netSettings.Ports['3306/tcp'][0].HostPort; diff --git a/package.json b/package.json index 0aac60e..e649d4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@verdnatura/myt", - "version": "1.5.32", + "version": "1.5.33", "author": "Verdnatura Levante SL", "description": "MySQL version control", "license": "GPL-3.0",