[client] Error out on netbird expose when block inbound is enabled (#5818)

This commit is contained in:
Viktor Liu
2026-04-07 23:55:35 +08:00
committed by GitHub
parent 0588d2dbe1
commit aba5d6f0d2
3 changed files with 12 additions and 2 deletions

View File

@@ -1837,6 +1837,11 @@ func (e *Engine) GetExposeManager() *expose.Manager {
return e.exposeManager
}
// IsBlockInbound returns whether inbound connections are blocked.
func (e *Engine) IsBlockInbound() bool {
return e.config.BlockInbound
}
// GetClientMetrics returns the client metrics
func (e *Engine) GetClientMetrics() *metrics.ClientMetrics {
return e.clientMetrics