|
|
@@ -56,7 +56,7 @@ type Inbound struct {
|
|
|
// Xray configuration fields
|
|
|
Listen string `json:"listen" form:"listen"`
|
|
|
Port int `json:"port" form:"port" validate:"gte=1,lte=65535"`
|
|
|
- Protocol Protocol `json:"protocol" form:"protocol" validate:"required,oneof=vmess vless trojan shadowsocks wireguard hysteria http mixed tunnel"`
|
|
|
+ Protocol Protocol `json:"protocol" form:"protocol" validate:"required,oneof=vmess vless trojan shadowsocks wireguard hysteria http mixed tunnel tun"`
|
|
|
Settings string `json:"settings" form:"settings"`
|
|
|
StreamSettings string `json:"streamSettings" form:"streamSettings"`
|
|
|
Tag string `json:"tag" form:"tag" gorm:"unique"`
|