diff --git a/package.json b/package.json index 53c99ca..cfd50e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.16.0-unstable3", + "version": "0.16.0-unstable4", "description": "", "main": "test-server.js", "bugs": { diff --git a/src/constellation/nebula.go b/src/constellation/nebula.go index 8781ea6..dcb66d6 100644 --- a/src/constellation/nebula.go +++ b/src/constellation/nebula.go @@ -365,6 +365,17 @@ func getYAMLClientConfig(name, configPath, capki, cert, key, APIKey string, devi configMap["constellation_public_hostname"] = device.PublicHostname configMap["constellation_api_key"] = APIKey + // lighten the config for QR Codes + // remove tun, firewall, punchy and logging + delete(configMap, "tun") + delete(configMap, "firewall") + delete(configMap, "punchy") + delete(configMap, "logging") + delete(configMap, "listen") + + // delete blocked pki + delete(configMap["pki"].(map[interface{}]interface{}), "blocklist") + // export configMap as YML yamlData, err = yaml.Marshal(configMap) if err != nil { diff --git a/src/utils/utils.go b/src/utils/utils.go index 5ce8d59..6b3c5af 100644 --- a/src/utils/utils.go +++ b/src/utils/utils.go @@ -851,5 +851,8 @@ func ListIps(skipNebula bool) ([]string, error) { } } + // TODO sort, local first + // ... + return result, nil } \ No newline at end of file