[client] Add dns config to debug bundle (#4704)

This commit is contained in:
Viktor Liu
2025-11-05 17:30:17 +01:00
committed by GitHub
parent 75327d9519
commit 229e0038ee
6 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
//go:build unix && !darwin && !android
package debug
import (
log "github.com/sirupsen/logrus"
)
// addDNSInfo collects and adds DNS configuration information to the archive
func (g *BundleGenerator) addDNSInfo() error {
if err := g.addResolvConf(); err != nil {
log.Errorf("failed to add resolv.conf: %v", err)
}
return nil
}