跳到主要内容

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

浏览文件

network_darwin.go

39 行 · 1.1 KB历史下载
1// SPDX-FileCopyrightText: Copyright The Lima Authors
2// SPDX-License-Identifier: Apache-2.0
3
4package sysprof
5
6type SPNetworkDataType struct {
7 SPNetworkDataType []NetworkDataType `json:"SPNetworkDataType"`
8}
9
10type NetworkDataType struct {
11 DNS DNS `json:"DNS"`
12 Interface string `json:"interface"`
13 IPv4 IPv4 `json:"IPv4,omitempty"`
14 Proxies Proxies `json:"Proxies"`
15}
16
17type DNS struct {
18 ServerAddresses []string `json:"ServerAddresses"`
19}
20
21type IPv4 struct {
22 Addresses []string `json:"Addresses,omitempty"`
23}
24
25type Proxies struct {
26 ExceptionList []string `json:"ExceptionList"` // default: ["*.local", "169.254/16"]
27 FTPEnable string `json:"FTPEnable"`
28 FTPPort any `json:"FTPPort"`
29 FTPProxy string `json:"FTPProxy"`
30 FTPUser string `json:"FTPUser"`
31 HTTPEnable string `json:"HTTPEnable"`
32 HTTPPort any `json:"HTTPPort"`
33 HTTPProxy string `json:"HTTPProxy"`
34 HTTPUser string `json:"HTTPUser"`
35 HTTPSEnable string `json:"HTTPSEnable"`
36 HTTPSPort any `json:"HTTPSPort"`
37 HTTPSProxy string `json:"HTTPSProxy"`
38 HTTPSUser string `json:"HTTPSUser"`
39}