Skip to content

Commit 2cc031c

Browse files
authored
[dotnet] [bidi] Adjust proxy configuration for new sessions (#15914)
1 parent 71ad272 commit 2cc031c

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

dotnet/src/webdriver/BiDi/Session/ProxyConfiguration.cs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// under the License.
1818
// </copyright>
1919

20+
using System.Collections.Generic;
2021
using System.Text.Json.Serialization;
2122

2223
namespace OpenQA.Selenium.BiDi.Session;
@@ -33,19 +34,26 @@ public record AutoDetectProxyConfiguration : ProxyConfiguration;
3334

3435
public record DirectProxyConfiguration : ProxyConfiguration;
3536

36-
public record ManualProxyConfiguration : ProxyConfiguration
37+
public record ManualProxyConfiguration : ProxyConfiguration, ISocksProxyConfiguration
3738
{
38-
public string? FtpProxy { get; set; }
39-
4039
public string? HttpProxy { get; set; }
4140

4241
public string? SslProxy { get; set; }
4342

4443
public string? SocksProxy { get; set; }
4544

46-
public long? SocksVersion { get; set; }
45+
public int? SocksVersion { get; set; }
46+
47+
public IEnumerable<string>? NoProxy { get; set; }
4748
}
4849

4950
public record PacProxyConfiguration(string ProxyAutoConfigUrl) : ProxyConfiguration;
5051

5152
public record SystemProxyConfiguration : ProxyConfiguration;
53+
54+
public interface ISocksProxyConfiguration
55+
{
56+
public string? SocksProxy { get; set; }
57+
58+
public int? SocksVersion { get; set; } // 0..255
59+
}

0 commit comments

Comments
 (0)