File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Flow.Launcher.Infrastructure/Http Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public static void UpdateProxy(ProxyProperty property)
61
61
{
62
62
( _proxy . Address , _proxy . Credentials ) = property switch
63
63
{
64
- ProxyProperty . Enabled => ( Proxy . Enabled ) switch
64
+ ProxyProperty . Enabled => Proxy . Enabled switch
65
65
{
66
66
true => Proxy . UserName switch
67
67
{
@@ -75,7 +75,8 @@ public static void UpdateProxy(ProxyProperty property)
75
75
ProxyProperty . Server => ( new Uri ( $ "http://{ Proxy . Server } :{ Proxy . Port } ") , _proxy . Credentials ) ,
76
76
ProxyProperty . Port => ( new Uri ( $ "http://{ Proxy . Server } :{ Proxy . Port } ") , _proxy . Credentials ) ,
77
77
ProxyProperty . UserName => ( _proxy . Address , new NetworkCredential ( Proxy . UserName , Proxy . Password ) ) ,
78
- ProxyProperty . Password => ( _proxy . Address , new NetworkCredential ( Proxy . UserName , Proxy . Password ) )
78
+ ProxyProperty . Password => ( _proxy . Address , new NetworkCredential ( Proxy . UserName , Proxy . Password ) ) ,
79
+ _ => throw new ArgumentOutOfRangeException ( )
79
80
} ;
80
81
}
81
82
You can’t perform that action at this time.
0 commit comments