# Xray内核自定义入口功能说明

V2bX完整支持全部的Xray-core所提供的自定义入口功能，具体启用方式如下：

1. 编写 custom\_inbound.json文件，此配置与Xray 出口配置完全相同，请查看：<https://xtls.github.io/config/inbound.html>获取帮助。
2. 在`config.yml`中配置`InboundConfigPath`为custom\_inbound.json的路径。

### 自定义入口功能示例

```
[
    {
        "listen": "0.0.0.0",
        "port": 1234,
        "protocol": "socks",
        "settings": {
            "auth": "noauth",
            "accounts": [
                {
                    "user": "my-username",
                    "pass": "my-password"
                }
            ],
            "udp": false,
            "ip": "127.0.0.1",
            "userLevel": 0
        }
    }
]
```


---

# 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://v2bx.v-50.me/v2bx/gong-neng-shuo-ming/zi-ding-yi-ru-kou-gong-neng-shuo-ming.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.
