[release] v0.10.0-unstable6
This commit is contained in:
parent
da94e1dfee
commit
ff90bdf51e
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.10.0-unstable5",
|
||||
"version": "0.10.0-unstable6",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
|
|
@ -78,9 +78,6 @@ func ExportConfigToYAML(overwriteConfig utils.ConstellationConfig, outputPath st
|
|||
// Combine defaultConfig and overwriteConfig
|
||||
finalConfig := NebulaDefaultConfig
|
||||
|
||||
//...
|
||||
|
||||
// add the hostnames
|
||||
finalConfig.StaticHostMap = map[string][]string{
|
||||
"192.168.201.0": []string{utils.GetMainConfig().HTTPConfig.Hostname + ":4242"},
|
||||
}
|
||||
|
@ -141,6 +138,13 @@ func getYAMLClientConfig(name, configPath string) (string, error) {
|
|||
return "", errors.New("pki not found in nebula.yml")
|
||||
}
|
||||
|
||||
if relayMap, ok := configMap["relay"].(map[interface{}]interface{}); ok {
|
||||
relayMap["am_relay"] = false
|
||||
relayMap["relays"] = []string{"192.168.201.0"}
|
||||
} else {
|
||||
return "", errors.New("relay not found in nebula.yml")
|
||||
}
|
||||
|
||||
// export configMap as YML
|
||||
yamlData, err = yaml.Marshal(configMap)
|
||||
if err != nil {
|
||||
|
|
|
@ -254,6 +254,7 @@ type NebulaConfig struct {
|
|||
Relay struct {
|
||||
AMRelay bool `yaml:"am_relay"`
|
||||
UseRelays bool `yaml:"use_relays"`
|
||||
relays []string `yaml:"relays"`
|
||||
} `yaml:"relay"`
|
||||
|
||||
TUN struct {
|
||||
|
|
Loading…
Reference in a new issue