[release] v0.16.0-unstable38

This commit is contained in:
Yann Stepienik
2024-09-13 17:41:10 +01:00
parent 10876e5983
commit 0aea5a0aa5
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.16.0-unstable37",
"version": "0.16.0-unstable38",
"description": "",
"main": "test-server.js",
"bugs": {

View File

@@ -254,7 +254,9 @@ func ExportConfigToYAML(overwriteConfig utils.ConstellationConfig, outputPath st
for _, hostname := range hsraw {
// trim
hostname = strings.TrimSpace(hostname)
hostnames = append(hostnames, hostname + ":4242")
if hostname != "" {
hostnames = append(hostnames, hostname + ":4242")
}
}
finalConfig.StaticHostMap = map[string][]string{
@@ -368,7 +370,9 @@ func getYAMLClientConfig(name, configPath, capki, cert, key, APIKey string, devi
for _, hostname := range hsraw {
// trim
hostname = strings.TrimSpace(hostname)
hostnames = append(hostnames, hostname + ":4242")
if hostname != "" {
hostnames = append(hostnames, hostname + ":4242")
}
}
staticHostMap["192.168.201.1"] = hostnames