Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions verifiers/v1/runtimes/modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,19 +260,9 @@ async def prepare_execution(self, routes: list[str] | None) -> None:
if routes is None:
domains, cidrs = ["*"], ["0.0.0.0/0"]
else:
domains = list(
dict.fromkeys(
domain
for domain in [
*(
_egress_domain(route, framework=True)
for route in routes
),
*(_egress_domain(rule) for rule in self.config.allow),
]
if domain is not None
)
)
domains = [_egress_domain(route, framework=True) for route in routes]
domains.extend(_egress_domain(rule) for rule in self.config.allow)
domains = list(dict.fromkeys(d for d in domains if d is not None))
cidrs = []
# Always send both lists: leaving the setup CIDR grant would bypass domains.
# The awaited RPC applies the policy and closes newly disallowed connections.
Expand Down