File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,10 @@ func (s *systemConfigurator) removeKeyFromSystemConfig(key string) error {
166
166
167
167
func (s * systemConfigurator ) addLocalDNS () error {
168
168
if ! s .systemDNSSettings .ServerIP .IsValid () || len (s .systemDNSSettings .Domains ) == 0 {
169
- err := s .recordSystemDNSSettings (true )
170
- log .Errorf ("Unable to get system DNS configuration" )
171
- return err
169
+ if err := s .recordSystemDNSSettings (true ); err != nil {
170
+ log .Errorf ("Unable to get system DNS configuration" )
171
+ return fmt .Errorf ("recordSystemDNSSettings(): %w" , err )
172
+ }
172
173
}
173
174
localKey := getKeyWithInput (netbirdDNSStateKeyFormat , localSuffix )
174
175
if s .systemDNSSettings .ServerIP .IsValid () && len (s .systemDNSSettings .Domains ) != 0 {
You can’t perform that action at this time.
0 commit comments