mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-21 12:59:08 +02:00
Merge branch 'main' into profile-ownership
This commit is contained in:
@@ -51,7 +51,6 @@ type ConfigParams struct {
|
||||
|
||||
type Config struct {
|
||||
ManagementURL string `json:"managementUrl"`
|
||||
AdminURL string `json:"adminUrl"`
|
||||
ConfigFile string `json:"configFile"`
|
||||
LogFile string `json:"logFile"`
|
||||
PreSharedKeySet bool `json:"preSharedKeySet"`
|
||||
@@ -84,7 +83,6 @@ type SetConfigParams struct {
|
||||
ProfileName string `json:"profileName"`
|
||||
Username string `json:"username"`
|
||||
ManagementURL string `json:"managementUrl"`
|
||||
AdminURL string `json:"adminUrl"`
|
||||
InterfaceName *string `json:"interfaceName,omitempty"`
|
||||
WireguardPort *int64 `json:"wireguardPort,omitempty"`
|
||||
MTU *int64 `json:"mtu,omitempty"`
|
||||
@@ -146,7 +144,6 @@ func (s *Settings) GetConfig(ctx context.Context, p ConfigParams) (Config, error
|
||||
}
|
||||
return Config{
|
||||
ManagementURL: resp.GetManagementUrl(),
|
||||
AdminURL: resp.GetAdminURL(),
|
||||
ConfigFile: resp.GetConfigFile(),
|
||||
LogFile: resp.GetLogFile(),
|
||||
PreSharedKeySet: resp.GetPreSharedKey() != "",
|
||||
@@ -183,7 +180,6 @@ func (s *Settings) SetConfig(ctx context.Context, p SetConfigParams) (SaveOutcom
|
||||
ProfileName: p.ProfileName,
|
||||
Username: p.Username,
|
||||
ManagementUrl: p.ManagementURL,
|
||||
AdminURL: p.AdminURL,
|
||||
InterfaceName: p.InterfaceName,
|
||||
WireguardPort: p.WireguardPort,
|
||||
Mtu: p.MTU,
|
||||
|
||||
Reference in New Issue
Block a user