Add GetWgPort and return engine config port in grpc call

This commit is contained in:
Theodor Signeboen Midtlien
2026-05-15 12:25:02 +02:00
parent 07e5450117
commit c228ce12e4
2 changed files with 16 additions and 1 deletions

View File

@@ -2318,6 +2318,11 @@ func (e *Engine) SetCapture(pc device.PacketCapture) error {
return nil
}
// GetWgPort returns the port currently configured for Wireguard.
func (e *Engine) GetWgPort() int {
return e.config.WgPort
}
// setForwarderCapture propagates capture to the USP filter's forwarder endpoint.
// This captures outbound response packets that bypass the FilteredDevice in netstack mode.
func (e *Engine) setForwarderCapture(pc device.PacketCapture) {