diff --git a/modal/sandbox.py b/modal/sandbox.py index a2a3ae178..4b8e059a0 100644 --- a/modal/sandbox.py +++ b/modal/sandbox.py @@ -129,6 +129,7 @@ async def _load(self: _Sandbox, resolver: Resolver, _existing_object_id: Optiona pty_info=pty_info, scheduler_placement=scheduler_placement.proto if scheduler_placement else None, worker_id=config.get("worker_id"), + i6pn_enabled=config.get("i6pn_enabled"), ) # Note - `resolver.app_id` will be `None` for app-less sandboxes diff --git a/modal_proto/api.proto b/modal_proto/api.proto index d407c0618..0ddd333b7 100644 --- a/modal_proto/api.proto +++ b/modal_proto/api.proto @@ -1777,6 +1777,8 @@ message Sandbox { oneof open_ports_oneof { PortSpecs open_ports = 20; } + + bool i6pn_enabled = 21; } message SandboxCreateRequest {