fix mixed inbound data for json sub

This commit is contained in:
Alireza Ahmadi
2024-11-21 22:51:14 +01:00
parent 056c458753
commit f1b6c8a131
3 changed files with 36 additions and 7 deletions
+1
View File
@@ -126,6 +126,7 @@ export default {
HasInData: [
InTypes.SOCKS,
InTypes.HTTP,
InTypes.Mixed,
InTypes.Shadowsocks,
InTypes.VMess,
InTypes.ShadowTLS,
+1 -1
View File
@@ -15,7 +15,7 @@ export function fillData(out: any, inbound: Inbound, tlsClient: any) {
out.server = location.hostname
out.server_port = inbound.listen_port
switch(inbound.type){
case InTypes.HTTP || InTypes.SOCKS:
case InTypes.HTTP: case InTypes.SOCKS: case InTypes.Mixed:
return
case InTypes.Shadowsocks:
shadowsocksOut(out, <Shadowsocks>inbound)