Skip to content

Commit 5d2aea6

Browse files
committed
Change the inbound of the xray configuration file from socks to mixed
1 parent 5824e18 commit 5d2aea6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

v2rayN/ServiceLib/Services/CoreConfig/CoreConfigV2rayService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public async Task<RetResult> GenerateClientSpeedtestConfig(List<ServerTestItem>
328328
{
329329
listen = Global.Loopback,
330330
port = port,
331-
protocol = EInboundProtocol.socks.ToString(),
331+
protocol = EInboundProtocol.mixed.ToString(),
332332
};
333333
inbound.tag = inbound.protocol + inbound.port.ToString();
334334
v2rayConfig.inbounds.Add(inbound);
@@ -403,7 +403,7 @@ public async Task<RetResult> GenerateClientSpeedtestConfig(ProfileItem node, int
403403
tag = $"{EInboundProtocol.socks}{port}",
404404
listen = Global.Loopback,
405405
port = port,
406-
protocol = EInboundProtocol.socks.ToString(),
406+
protocol = EInboundProtocol.mixed.ToString(),
407407
});
408408

409409
ret.Msg = string.Format(ResUI.SuccessfulConfiguration, "");
@@ -507,7 +507,7 @@ private Inbounds4Ray GetInbound(InItem inItem, EInboundProtocol protocol, bool b
507507
}
508508
inbound.tag = protocol.ToString();
509509
inbound.port = inItem.LocalPort + (int)protocol;
510-
inbound.protocol = EInboundProtocol.socks.ToString();
510+
inbound.protocol = EInboundProtocol.mixed.ToString();
511511
inbound.settings.udp = inItem.UdpEnabled;
512512
inbound.sniffing.enabled = inItem.SniffingEnabled;
513513
inbound.sniffing.destOverride = inItem.DestOverride;

0 commit comments

Comments
 (0)