Skip to content

Commit

Permalink
remove xtls
Browse files Browse the repository at this point in the history
  • Loading branch information
azavaxhuman committed Oct 30, 2023
1 parent 13f42fc commit 976a7da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
<select name="security" >
<option value="none">none</option>
<option value="tls" id="tls">TLS</option>
<option value="xtls" id="xtls">xTLS</option>
<option value="reality" id="reality">Reality</option>
</select>
</div>
Expand Down
29 changes: 1 addition & 28 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ function protocolDetails() {
}
const securityMapping = {
tls: 1,
xtls: 2,
reality: 5,
none: 0
}
Expand Down Expand Up @@ -216,7 +215,6 @@ function protocolDetails() {
<select name="security" >
<option value="none">none</option>
<option value="tls" id="tls">tls</option>
<option value="xtls" id="xtls">xtls</option>
<option value="reality" id="reality">reality</option>
</select>
</div>`;
Expand Down Expand Up @@ -256,7 +254,6 @@ function protocolDetails() {
<select name="security" >
<option value="none">none</option>
<option value="tls" id="tls">tls</option>
<option value="xtls" id="xtls">xtls</option>
</select>
</div>`;

Expand All @@ -282,7 +279,7 @@ function protocolDetails() {
// جایگزینی محتوای عنصر با متن جدید
idsecurity.innerHTML = newText4;

if (security == 'reality' || security == 'xtls') {
if (security == 'reality') {
security = 'none'
protocolDetails();
}
Expand Down Expand Up @@ -325,30 +322,6 @@ function protocolDetails() {
sniffing
)
}
if (s == 2) {
DisplayBlock(TlsForm, '1')
DisplayBlock(RealityForm, '0')
BuildTLS(
pts,
t,
s,
protocol,
transmission,
security,
name,
port,
sni,
pubkey,
pvkey,
h,
path,
fields,
acceptProxyProtocol,
headerOnOff,
sniftext,
sniffing
)
}
if (s == 5) {
DisplayBlock(TlsForm, '0')
DisplayBlock(RealityForm, '1')
Expand Down

0 comments on commit 976a7da

Please sign in to comment.