Add packet tracer

This commit is contained in:
Viktor Liu
2025-01-03 21:09:40 +01:00
parent 7dfe7e426e
commit 766e0cccc9
7 changed files with 1288 additions and 129 deletions
+8
View File
@@ -1624,6 +1624,14 @@ func (e *Engine) GetLatestNetworkMap() (*mgmProto.NetworkMap, error) {
return nm, nil
}
// GetWgAddr returns the wireguard address
func (e *Engine) GetWgAddr() net.IP {
if e.wgInterface == nil {
return nil
}
return e.wgInterface.Address().IP
}
// updateDNSForwarder start or stop the DNS forwarder based on the domains and the feature flag
func (e *Engine) updateDNSForwarder(enabled bool, domains []string) {
if !enabled {