mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-19 23:29:56 +00:00
Add GetWgPort and return engine config port in grpc call
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user