# Safari

macOS 上的 Safari 没有内建代理 UI——跟随 macOS 系统代理设置。配置在 OS 层完成。

## 配置步骤

1. **系统设置 → 网络 → {当前接口，如 Wi-Fi} → 详细信息… → 代理**。
2. 勾选 **Web 代理 (HTTP)** 与 **安全 Web 代理 (HTTPS)**。
3. 各自填写：
   * 服务器：`gate.helodata.io`，端口 `7777`（或你的 ISP IP）
   * 勾选 **代理服务器需要密码**
   * 用户名：完整代理用户名（如 `helo_s1a2b3c4d5e-type-res-region-us`）
   * 密码：子账号密码
4. **好** → **应用**。

\[screenshot: macOS 代理面板，HTTP 与 HTTPS 已配置]

## 作用范围

此设置影响**当前网络接口下所有应用**，不仅 Safari。切到其他网络（例如插上以太网）代理不跟随。请为每个常用接口分别配置，或用位置功能：

* **系统设置 → 网络 → ⋯ → 位置 → 编辑位置…** — 新建一个「helodata」位置，通过苹果菜单切换。

## 改用 SOCKS5

在代理面板勾 **SOCKS 代理**，填 `gate.helodata.io:7777`（或 ISP IP），开启认证。Safari 会走 SOCKS5；macOS 默认让 SOCKS5 在代理端解析 DNS。

## 验证

在 Safari 访问 `https://ipv4.icanhazip.com`，应显示 helodata 的 IP。

## 常见陷阱

* **VPN 在用** — macOS 的 VPN 通常会绕过代理。请断开 VPN 或把代理放到不同位置。
* **绕过清单** — 默认排除 `*.local`、`169.254/16`、`localhost`。挺有用，但若你自行添加过，注意别误把目标也排除了。
* **强制门户（咖啡馆 Wi-Fi 等）** — macOS 即使在门户检测时也走代理，可能破坏登录流程。Wi-Fi 接入阶段请临时取消勾选。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.helodata.com/helodata-zh/ji-cheng-zhi-nan/liu-lan-qi/safari.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
