mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-01-08 05:09:33 -06:00
[release] v0.16.0-unstable38
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.16.0-unstable37",
|
||||
"version": "0.16.0-unstable38",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user