File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,20 +18,22 @@ public class Loopback
1818 /// <returns>True, if the exception is present.</returns>
1919 public bool IsWebViewLoopbackEnabled ( )
2020 {
21- var webViewSid = GetWebViewAppContainerSid ( ) ;
21+ var webViewSids = GetWebViewAppContainerSids ( ) ;
2222 return GetAllAppContainerConfigs ( ) . Any ( c =>
2323 {
2424 ConvertSidToStringSid ( c . Sid , out var currentSid ) ;
25- return currentSid == webViewSid ;
25+ return webViewSids . Any ( webViewSid => currentSid == webViewSid ) ;
2626 } ) ;
2727 }
2828
29- private string GetWebViewAppContainerSid ( )
29+ private IEnumerable < string > GetWebViewAppContainerSids ( )
3030 {
31- var webviewAppContainer = GetAllAppContainers ( )
32- . SingleOrDefault ( a => a . appContainerName . ToLower ( ) == WebViewAppContainerName ) ;
33- ConvertSidToStringSid ( webviewAppContainer . appContainerSid , out var webViewSid ) ;
34- return webViewSid ;
31+ return GetAllAppContainers ( )
32+ . Where ( a => a . appContainerName . ToLower ( ) == WebViewAppContainerName )
33+ . Select ( a => {
34+ ConvertSidToStringSid ( a . appContainerSid , out var webViewSid ) ;
35+ return webViewSid ;
36+ } ) ;
3537 }
3638
3739 private List < FirewallAppContainer > GetAllAppContainers ( )
You can’t perform that action at this time.
0 commit comments