File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ public Proxy(Dictionary<string, object> settings)
113113 }
114114 else
115115 {
116- ProxyKind rawType = Enum . Parse < ProxyKind > ( proxyType , ignoreCase : true ) ;
116+ ProxyKind rawType = ( ProxyKind ) Enum . Parse ( typeof ( ProxyKind ) , proxyType , ignoreCase : true ) ;
117117 this . Kind = rawType ;
118118 }
119119 }
@@ -135,11 +135,14 @@ public Proxy(Dictionary<string, object> settings)
135135 {
136136 bypassAddresses . AddRange ( addressesAsString . Split ( ';' ) ) ;
137137 }
138- else if ( noProxy is object ? [ ] addressesAsArray )
138+ else
139139 {
140- foreach ( object ? address in addressesAsArray )
140+ if ( noProxy is object ? [ ] addressesAsArray )
141141 {
142- bypassAddresses . Add ( address ? . ToString ( ) ?? throw new ArgumentException ( "noProxy list contained null element" , nameof ( settings ) ) ) ;
142+ foreach ( object ? address in addressesAsArray )
143+ {
144+ bypassAddresses . Add ( address ? . ToString ( ) ?? throw new ArgumentException ( "noProxy list contained null element" , nameof ( settings ) ) ) ;
145+ }
143146 }
144147 }
145148
You can’t perform that action at this time.
0 commit comments