1
0
Fork 1
mirror of https://github.com/DefinedNet/mobile_nebula.git synced 2025-07-11 14:06:03 +00:00

Use correct relay key in Nebula config ()

This commit is contained in:
John Maguire 2024-10-16 17:13:44 -04:00 committed by GitHub
parent 470578865b
commit 43fad65cf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ type config struct {
Stats configStats `yaml:"stats"` Stats configStats `yaml:"stats"`
Handshakes configHandshakes `yaml:"handshakes"` Handshakes configHandshakes `yaml:"handshakes"`
Firewall configFirewall `yaml:"firewall"` Firewall configFirewall `yaml:"firewall"`
Relays configRelays `yaml:"relays"` Relay configRelay `yaml:"relay"`
} }
func newConfig() *config { func newConfig() *config {
@ -38,7 +38,7 @@ func newConfig() *config {
Punch: true, Punch: true,
Delay: "1s", Delay: "1s",
}, },
Relays: configRelays{ Relay: configRelay{
UseRelays: true, UseRelays: true,
}, },
Cipher: "aes", Cipher: "aes",
@ -205,7 +205,7 @@ type configFirewallRule struct {
CAName string `yaml:"ca_name,omitempty"` CAName string `yaml:"ca_name,omitempty"`
} }
type configRelays struct { type configRelay struct {
AmRelay bool `yaml:"am_relay,omitempty"` AmRelay bool `yaml:"am_relay,omitempty"`
UseRelays bool `yaml:"use_relays"` UseRelays bool `yaml:"use_relays"`
relays []string `yaml:"relays,omitempty"` relays []string `yaml:"relays,omitempty"`