Skip to content
Open
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
5 changes: 3 additions & 2 deletions src/workerd/server/container-client.c++
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,10 @@ kj::Promise<void> warnAboutStaleSnapshotVolumes(kj::Network& network, kj::String
}

// Returns the gateway IP on Linux for direct container access.
// Returns kj::none on macOS where Docker Desktop routes host-gateway to host loopback.
// Returns kj::none on macOS and Windows where Docker Desktop routes host-gateway to host loopback
// through the VM (so the bridge gateway IP is not a local interface on the host).
kj::Maybe<kj::String> gatewayForPlatform(kj::String gateway) {
#ifdef __APPLE__
#if defined(__APPLE__) || defined(_WIN32)
return kj::none;
#else
return kj::mv(gateway);
Expand Down
Loading