Skip to content

Commit 51750be

Browse files
committed
update install.sh
1 parent 82adaa2 commit 51750be

1 file changed

Lines changed: 150 additions & 150 deletions

File tree

install.sh

Lines changed: 150 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -291,156 +291,156 @@ config2Fragment() {
291291
if [ "$tls" == "tls" ]; then
292292
# Create the JSON config with TLS
293293
json=$(cat <<EOF
294-
{
295-
"remarks": "$name+TLS+Fragment",
296-
"log": {
297-
"access": "",
298-
"error": "",
299-
"loglevel": "warning"
300-
},
301-
"inbounds": [
302-
{
303-
"tag": "socks",
304-
"port": 10808,
305-
"listen": "127.0.0.1",
306-
"protocol": "socks",
307-
"sniffing": {
308-
"enabled": true,
309-
"destOverride": [
310-
"http",
311-
"tls"
312-
],
313-
"routeOnly": false
314-
},
315-
"settings": {
316-
"auth": "noauth",
317-
"udp": true,
318-
"allowTransparent": false
319-
}
320-
},
321-
{
322-
"tag": "http",
323-
"port": 10809,
324-
"listen": "127.0.0.1",
325-
"protocol": "http",
326-
"sniffing": {
327-
"enabled": true,
328-
"destOverride": [
329-
"http",
330-
"tls"
331-
],
332-
"routeOnly": false
333-
},
334-
"settings": {
335-
"auth": "noauth",
336-
"udp": true,
337-
"allowTransparent": false
338-
}
339-
}
340-
],
341-
"outbounds": [
342-
{
343-
"tag": "proxy",
344-
"protocol": "vmess",
345-
"settings": {
346-
"vnext": [
347-
{
348-
"address": "$address",
349-
"port": $port,
350-
"users": [
351-
{
352-
"id": "$uuid",
353-
"alterId": 0,
354-
"email": "email",
355-
"security": "$security",
356-
"encryption": "none",
357-
"flow": ""
358-
}
359-
]
360-
}
361-
]
362-
},
363-
"streamSettings": {
364-
"network": "$network",
365-
"security": "tls",
366-
"tlsSettings": {
367-
"allowInsecure": false,
368-
"serverName": "$sni",
369-
"alpn": [
370-
$alpn
371-
],
372-
"fingerprint": "$fp",
373-
"show": false
374-
},
375-
"wsSettings": {
376-
"path": "$path",
377-
"headers": {
378-
"Host": "$host"
379-
}
380-
},
381-
"sockopt": {
382-
"dialerProxy": "fragment",
383-
"tcpKeepAliveIdle": 100,
384-
"mark": 255,
385-
"tcpNoDelay": true
386-
}
387-
}
388-
},
389-
{
390-
"tag": "fragment",
391-
"protocol": "freedom",
392-
"settings": {
393-
"domainStrategy": "AsIs",
394-
"fragment": {
395-
"packets": "tlshello",
396-
"length": "10-20",
397-
"interval": "10-20"
398-
}
399-
},
400-
"streamSettings": {
401-
"sockopt": {
402-
"tcpNoDelay": true,
403-
"tcpKeepAliveIdle": 100
404-
}
405-
}
406-
},
407-
{
408-
"tag": "direct",
409-
"protocol": "freedom",
410-
"settings": {}
411-
},
412-
{
413-
"tag": "block",
414-
"protocol": "blackhole",
415-
"settings": {
416-
"response": {
417-
"type": "http"
418-
}
419-
}
420-
}
421-
],
422-
"routing": {
423-
"domainStrategy": "AsIs",
424-
"rules": [
425-
{
426-
"type": "field",
427-
"inboundTag": [
428-
"api"
429-
],
430-
"outboundTag": "api",
431-
"enabled": true
432-
},
433-
{
434-
"id": "5627785659655799759",
435-
"type": "field",
436-
"port": "0-65535",
437-
"outboundTag": "proxy",
438-
"enabled": true
439-
}
440-
]
441-
}
442-
}
443-
EOF
294+
{
295+
"remarks": "$name+TLS+Fragment",
296+
"log": {
297+
"access": "",
298+
"error": "",
299+
"loglevel": "warning"
300+
},
301+
"inbounds": [
302+
{
303+
"tag": "socks",
304+
"port": 10808,
305+
"listen": "127.0.0.1",
306+
"protocol": "socks",
307+
"sniffing": {
308+
"enabled": true,
309+
"destOverride": [
310+
"http",
311+
"tls"
312+
],
313+
"routeOnly": false
314+
},
315+
"settings": {
316+
"auth": "noauth",
317+
"udp": true,
318+
"allowTransparent": false
319+
}
320+
},
321+
{
322+
"tag": "http",
323+
"port": 10809,
324+
"listen": "127.0.0.1",
325+
"protocol": "http",
326+
"sniffing": {
327+
"enabled": true,
328+
"destOverride": [
329+
"http",
330+
"tls"
331+
],
332+
"routeOnly": false
333+
},
334+
"settings": {
335+
"auth": "noauth",
336+
"udp": true,
337+
"allowTransparent": false
338+
}
339+
}
340+
],
341+
"outbounds": [
342+
{
343+
"tag": "proxy",
344+
"protocol": "vmess",
345+
"settings": {
346+
"vnext": [
347+
{
348+
"address": "$address",
349+
"port": $port,
350+
"users": [
351+
{
352+
"id": "$uuid",
353+
"alterId": 0,
354+
"email": "email",
355+
"security": "$security",
356+
"encryption": "none",
357+
"flow": ""
358+
}
359+
]
360+
}
361+
]
362+
},
363+
"streamSettings": {
364+
"network": "$network",
365+
"security": "tls",
366+
"tlsSettings": {
367+
"allowInsecure": false,
368+
"serverName": "$sni",
369+
"alpn": [
370+
$alpn
371+
],
372+
"fingerprint": "$fp",
373+
"show": false
374+
},
375+
"wsSettings": {
376+
"path": "$path",
377+
"headers": {
378+
"Host": "$host"
379+
}
380+
},
381+
"sockopt": {
382+
"dialerProxy": "fragment",
383+
"tcpKeepAliveIdle": 100,
384+
"mark": 255,
385+
"tcpNoDelay": true
386+
}
387+
}
388+
},
389+
{
390+
"tag": "fragment",
391+
"protocol": "freedom",
392+
"settings": {
393+
"domainStrategy": "AsIs",
394+
"fragment": {
395+
"packets": "tlshello",
396+
"length": "10-20",
397+
"interval": "10-20"
398+
}
399+
},
400+
"streamSettings": {
401+
"sockopt": {
402+
"tcpNoDelay": true,
403+
"tcpKeepAliveIdle": 100
404+
}
405+
}
406+
},
407+
{
408+
"tag": "direct",
409+
"protocol": "freedom",
410+
"settings": {}
411+
},
412+
{
413+
"tag": "block",
414+
"protocol": "blackhole",
415+
"settings": {
416+
"response": {
417+
"type": "http"
418+
}
419+
}
420+
}
421+
],
422+
"routing": {
423+
"domainStrategy": "AsIs",
424+
"rules": [
425+
{
426+
"type": "field",
427+
"inboundTag": [
428+
"api"
429+
],
430+
"outboundTag": "api",
431+
"enabled": true
432+
},
433+
{
434+
"id": "5627785659655799759",
435+
"type": "field",
436+
"port": "0-65535",
437+
"outboundTag": "proxy",
438+
"enabled": true
439+
}
440+
]
441+
}
442+
}
443+
EOF
444444
)
445445
else
446446
# VMESS NO TLS

0 commit comments

Comments
 (0)