File tree Expand file tree Collapse file tree
v2rayN/ServiceLib/Services/CoreConfig/Singbox Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments