2022-08-24 18:43:39 +08:00
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 12:50:26 +08:00
|
|
|
"type": "tproxy",
|
|
|
|
"tag": "tproxy-in",
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
... // 监听字段
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
"network": "udp"
|
|
|
|
}
|
|
|
|
```
|
2022-08-24 18:43:39 +08:00
|
|
|
|
|
|
|
### 监听字段
|
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
参阅 [监听字段](/zh/configuration/shared/listen/)。
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
### 字段
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
#### network
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
监听的网络协议,`tcp` `udp` 之一。
|
2022-08-24 18:43:39 +08:00
|
|
|
|
2022-08-31 12:50:26 +08:00
|
|
|
默认所有。
|