> For the complete documentation index, see [llms.txt](https://wiki.vtx.team/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.vtx.team/panel/v2board-remove-direct-suburl.md).

# V2board 删除默认的订阅地址直连规则（强烈建议）

由于 V2board 默认会下发订阅地址直连的规则，在使用过程中，客户端通过规则去拉取订阅，容易造成直连超时而无法拉取订阅的问题。

默认的 Clash 下发文件为 `app/Http/Controllers/Client/Protocols/Clash.php` ，如下图所示：

<figure><img src="/files/HzwklPfhPtumujyQ3K2l" alt=""><figcaption></figcaption></figure>

```php
if ($subsDomain) {
        array_unshift($config['rules'], "DOMAIN,{$subsDomain},DIRECT");
}
```

{% hint style="info" %}
这条代码会默认给 `Clash` 配置文件下发订阅地址直连的规则，仅需删除或注释即可。
{% endhint %}

{% hint style="danger" %}
若在打包时有自定义订阅类型，请选择对应 php 文件删除或注释代码，如 `app/Http/Controllers/Client/Protocols/ClashMeta.php`
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://wiki.vtx.team/panel/v2board-remove-direct-suburl.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.
