Change the inbound of the xray configuration file from socks to mixed

pull/7315/head
2dust 2025-05-17 14:51:18 +08:00
parent 5824e18ed6
commit 5d2aea6b4f
1 changed files with 3 additions and 3 deletions

View File

@ -328,7 +328,7 @@ public class CoreConfigV2rayService
{
listen = Global.Loopback,
port = port,
protocol = EInboundProtocol.socks.ToString(),
protocol = EInboundProtocol.mixed.ToString(),
};
inbound.tag = inbound.protocol + inbound.port.ToString();
v2rayConfig.inbounds.Add(inbound);
@ -403,7 +403,7 @@ public class CoreConfigV2rayService
tag = $"{EInboundProtocol.socks}{port}",
listen = Global.Loopback,
port = port,
protocol = EInboundProtocol.socks.ToString(),
protocol = EInboundProtocol.mixed.ToString(),
});
ret.Msg = string.Format(ResUI.SuccessfulConfiguration, "");
@ -507,7 +507,7 @@ public class CoreConfigV2rayService
}
inbound.tag = protocol.ToString();
inbound.port = inItem.LocalPort + (int)protocol;
inbound.protocol = EInboundProtocol.socks.ToString();
inbound.protocol = EInboundProtocol.mixed.ToString();
inbound.settings.udp = inItem.UdpEnabled;
inbound.sniffing.enabled = inItem.SniffingEnabled;
inbound.sniffing.destOverride = inItem.DestOverride;