Skip to content

Commit 8f93c50

Browse files
committed
Bug fix
1 parent fe7c505 commit 8f93c50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxInboundService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ private async Task<int> GenInbounds(SingboxConfig singboxConfig)
1010
singboxConfig.inbounds = [];
1111

1212
if (!_config.TunModeItem.EnableTun
13-
|| _config.TunModeItem.EnableTun && _config.TunModeItem.EnableExInbound && _config.RunningCoreType == ECoreType.sing_box)
13+
|| (_config.TunModeItem.EnableTun && _config.TunModeItem.EnableExInbound && _config.RunningCoreType == ECoreType.sing_box))
1414
{
1515
var inbound = new Inbound4Sbox()
1616
{
@@ -78,7 +78,7 @@ private async Task<int> GenInbounds(SingboxConfig singboxConfig)
7878
{
7979
Logging.SaveLog(_tag, ex);
8080
}
81-
return 0;
81+
return await Task.FromResult(0);
8282
}
8383

8484
private Inbound4Sbox GetInbound(Inbound4Sbox inItem, EInboundProtocol protocol, bool bSocks)

0 commit comments

Comments
 (0)