Revert "TUN-7065: Revert Ingress Rule check for named tunnel configurations"

This reverts commit b8e610a067.
This commit is contained in:
João Oliveirinha 2023-02-01 14:01:46 +00:00
parent b8e610a067
commit 90d710e3ec
1 changed files with 3 additions and 0 deletions

View File

@ -258,6 +258,9 @@ func prepareTunnelConfig(
return nil, nil, err return nil, nil, err
} }
} }
if ingressRules.IsEmpty() {
return nil, nil, ingress.ErrNoIngressRules
}
protocolSelector, err := connection.NewProtocolSelector(transportProtocol, cfg.WarpRouting.Enabled, namedTunnel, protocolFetcher, supervisor.ResolveTTL, log, c.Bool("post-quantum")) protocolSelector, err := connection.NewProtocolSelector(transportProtocol, cfg.WarpRouting.Enabled, namedTunnel, protocolFetcher, supervisor.ResolveTTL, log, c.Bool("post-quantum"))
if err != nil { if err != nil {