mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-01 22:56:41 +00:00
fix error handling
This commit is contained in:
@@ -163,7 +163,9 @@ func (m *Manager) replaceHostByLookup(ctx context.Context, accountID string, s *
|
||||
if target.Protocol == "https" {
|
||||
settings, err := m.accountManager.GetAccountSettings(ctx, accountID, activity.SystemInitiator)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to get account settings for DNS domain lookup: %w", err)
|
||||
log.WithContext(ctx).Warnf("failed to get account settings for service %s: %v", s.ID, err)
|
||||
target.Host = unknownHostPlaceholder
|
||||
continue
|
||||
}
|
||||
dnsDomain := m.networkMapController.GetDNSDomain(settings)
|
||||
target.Host = peer.FQDN(dnsDomain)
|
||||
|
||||
Reference in New Issue
Block a user