Welcome to mirror list, hosted at ThFree Co, Russian Federation.

stream_sockopt.html « stream « form « html « web - github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 84a96c2b4726e8c4ee6de5b7335b42ebcc5a53c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{{define "form/streamSockopt"}}
<a-divider :style="{ margin: '5px 0 0' }"></a-divider>
<a-form
  :colon="false"
  :label-col="{ md: {span:8} }"
  :wrapper-col="{ md: {span:14} }"
>
  <a-form-item label="Sockopt">
    <a-switch v-model="inbound.stream.sockoptSwitch"></a-switch>
  </a-form-item>
  <template v-if="inbound.stream.sockoptSwitch">
    <a-form-item label="Route Mark">
      <a-input-number
        v-model.number="inbound.stream.sockopt.mark"
        :min="0"
      ></a-input-number>
    </a-form-item>
    <a-form-item label="TCP Keep Alive Interval">
      <a-input-number
        v-model.number="inbound.stream.sockopt.tcpKeepAliveInterval"
        :min="0"
      ></a-input-number>
    </a-form-item>
    <a-form-item label="TCP Keep Alive Idle">
      <a-input-number
        v-model.number="inbound.stream.sockopt.tcpKeepAliveIdle"
        :min="0"
      ></a-input-number>
    </a-form-item>
    <a-form-item label="TCP Max Seg">
      <a-input-number
        v-model.number="inbound.stream.sockopt.tcpMaxSeg"
        :min="0"
      ></a-input-number>
    </a-form-item>
    <a-form-item label="TCP User Timeout">
      <a-input-number
        v-model.number="inbound.stream.sockopt.tcpUserTimeout"
        :min="0"
      ></a-input-number>
    </a-form-item>
    <a-form-item label="TCP Window Clamp">
      <a-input-number
        v-model.number="inbound.stream.sockopt.tcpWindowClamp"
        :min="0"
      ></a-input-number>
    </a-form-item>
    <a-form-item label="Proxy Protocol">
      <a-switch v-model="inbound.stream.sockopt.acceptProxyProtocol"></a-switch>
    </a-form-item>
    <a-form-item label="TCP Fast Open">
      <a-switch v-model.trim="inbound.stream.sockopt.tcpFastOpen"></a-switch>
    </a-form-item>
    <a-form-item label="Multipath TCP">
      <a-switch v-model.trim="inbound.stream.sockopt.tcpMptcp"></a-switch>
    </a-form-item>
    <a-form-item label="Penetrate">
      <a-switch v-model.trim="inbound.stream.sockopt.penetrate"></a-switch>
    </a-form-item>
    <a-form-item label="V6 Only">
      <a-switch v-model.trim="inbound.stream.sockopt.V6Only"></a-switch>
    </a-form-item>
    <a-form-item label="Domain Strategy">
      <a-select
        v-model="inbound.stream.sockopt.domainStrategy"
        :style="{ width: '50%' }"
        :dropdown-class-name="themeSwitcher.currentTheme"
      >
        <a-select-option v-for="key in DOMAIN_STRATEGY_OPTION" :value="key"
          >[[ key ]]</a-select-option
        >
      </a-select>
    </a-form-item>
    <a-form-item label="TCP Congestion">
      <a-select
        v-model="inbound.stream.sockopt.tcpcongestion"
        :style="{ width: '50%' }"
        :dropdown-class-name="themeSwitcher.currentTheme"
      >
        <a-select-option v-for="key in TCP_CONGESTION_OPTION" :value="key"
          >[[ key ]]</a-select-option
        >
      </a-select>
    </a-form-item>
    <a-form-item label="TProxy">
      <a-select
        v-model="inbound.stream.sockopt.tproxy"
        :style="{ width: '50%' }"
        :dropdown-class-name="themeSwitcher.currentTheme"
      >
        <a-select-option value="off">Off</a-select-option>
        <a-select-option value="redirect">Redirect</a-select-option>
        <a-select-option value="tproxy">TProxy</a-select-option>
      </a-select>
    </a-form-item>
    <a-form-item label="Dialer Proxy">
      <a-input v-model="inbound.stream.sockopt.dialerProxy"></a-input>
    </a-form-item>
    <a-form-item label="Interface Name">
      <a-input v-model="inbound.stream.sockopt.interfaceName"></a-input>
    </a-form-item>
    <a-form-item label="Trusted X-Forwarded-For">
      <a-select
        mode="tags"
        v-model="inbound.stream.sockopt.trustedXForwardedFor"
        :style="{ width: '100%' }"
        :dropdown-class-name="themeSwitcher.currentTheme"
      >
        <a-select-option value="CF-Connecting-IP"
          >CF-Connecting-IP</a-select-option
        >
        <a-select-option value="X-Real-IP">X-Real-IP</a-select-option>
        <a-select-option value="True-Client-IP">True-Client-IP</a-select-option>
        <a-select-option value="X-Client-IP">X-Client-IP</a-select-option>
      </a-select>
    </a-form-item>
  </template>
</a-form>
{{end}}