跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

0033-cage-ipv6-link-observer.patch

20 行 · 731 B历史下载
1--- a/pkg/networks/usernet/gvproxy.go
2+++ b/pkg/networks/usernet/gvproxy.go
3@@ -53,6 +53,9 @@
4 // guests of the per-instance netstacks may reach (types.Configuration.Outbound).
5 // The host services the guest needs (AllowHostService) are reached past it.
6 var Outbound types.Outbound
7+
8+// DroppedIPv6 is an optional observer for the instance-owned IPv4-only guest link.
9+var DroppedIPv6 func([]byte)
10
11 // GuestDial and DNSExchange are host-owned transport hooks.
12 var GuestDial types.DialContext
13@@ -142,6 +145,7 @@
14 },
15 GatewayVirtualIPs: []string{gatewayIP},
16 Outbound: outbound,
17+ DroppedIPv6: DroppedIPv6,
18 DialContext: dialGuest,
19 DNSExchange: DNSExchange,
20 DNSNames: Names,