mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-06 21:49:08 +02:00
[management] return nil when config is not set
This commit is contained in:
@@ -49,14 +49,7 @@ func init() {
|
|||||||
|
|
||||||
func toNetbirdConfig(config *nbconfig.Config, turnCredentials *Token, relayToken *Token, extraSettings *types.ExtraSettings, settings *types.Settings) *proto.NetbirdConfig {
|
func toNetbirdConfig(config *nbconfig.Config, turnCredentials *Token, relayToken *Token, extraSettings *types.ExtraSettings, settings *types.Settings) *proto.NetbirdConfig {
|
||||||
if config == nil {
|
if config == nil {
|
||||||
if settings == nil {
|
return nil
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return &proto.NetbirdConfig{
|
|
||||||
Metrics: &proto.MetricsConfig{
|
|
||||||
Enabled: settings.MetricsPushEnabled,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var stuns []*proto.HostConfig
|
var stuns []*proto.HostConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user