package io.wdd.func.xray.beans.config;

import io.wdd.func.xray.beans.xray.protocol.inbound.vmess.VMESS;
import io.wdd.func.xray.beans.xray.transport.InboundObject;
import io.wdd.func.xray.beans.xray.transport.NoneHeaderObject;
import io.wdd.func.xray.beans.xray.transport.StreamSettingsObject;
import io.wdd.func.xray.beans.xray.transport.TcpObject;

public class InboundVmessTCPTemplateClass {

    public static InboundObject InboundVmessTCPTemplate;


    static {

        InboundVmessTCPTemplate = new VMESS();

        // 构建 settings- vmess-tcp-http的对象
        TcpObject tcpObject = new TcpObject();

        // none type
        NoneHeaderObject noneHeaderObject = new NoneHeaderObject();
        tcpObject.setHeader(noneHeaderObject);

        // 设置 settings属性
        StreamSettingsObject streamSettingsObject = new StreamSettingsObject();
        streamSettingsObject.setTcpSettings(tcpObject);
        InboundVmessTCPTemplate.setStreamSettings(streamSettingsObject);

    }
}
