1919using System ;
2020using System . Globalization ;
2121using System . Text ;
22- using OpenQA . Selenium . Internal ;
2322
2423namespace OpenQA . Selenium . Chromium
2524{
@@ -33,7 +32,7 @@ public abstract class ChromiumDriverService : DriverService
3332 private string logPath = string . Empty ;
3433 private string urlPathPrefix = string . Empty ;
3534 private string portServerAddress = string . Empty ;
36- private string allowedIpAddresses = string . Empty ;
35+ private string allowedIPAddresses = string . Empty ;
3736 private int adbPort = - 1 ;
3837 private bool disableBuildCheck ;
3938 private bool enableVerboseLogging ;
@@ -122,22 +121,22 @@ public bool EnableAppendLog
122121 /// connect to this instance of the Chrome driver. Defaults to an empty string,
123122 /// which means only the local loopback address can connect.
124123 /// </summary>
125- [ Obsolete ( "Use AllowedIpAddresses " ) ]
126- public string WhitelistedIpAddresses
124+ [ Obsolete ( $ "Use { nameof ( AllowedIPAddresses ) } ") ]
125+ public string WhitelistedIPAddresses
127126 {
128- get { return this . allowedIpAddresses ; }
129- set { this . allowedIpAddresses = value ; }
127+ get { return this . allowedIPAddresses ; }
128+ set { this . allowedIPAddresses = value ; }
130129 }
131130
132131 /// <summary>
133132 /// Gets or sets the comma-delimited list of IP addresses that are approved to
134133 /// connect to this instance of the Chrome driver. Defaults to an empty string,
135134 /// which means only the local loopback address can connect.
136135 /// </summary>
137- public string AllowedIpAddresses
136+ public string AllowedIPAddresses
138137 {
139- get { return this . allowedIpAddresses ; }
140- set { this . allowedIpAddresses = value ; }
138+ get => this . allowedIPAddresses ;
139+ set => this . allowedIPAddresses = value ;
141140 }
142141
143142 /// <summary>
@@ -188,9 +187,9 @@ protected override string CommandLineArguments
188187 argsBuilder . AppendFormat ( CultureInfo . InvariantCulture , " --port-server={0}" , this . portServerAddress ) ;
189188 }
190189
191- if ( ! string . IsNullOrEmpty ( this . allowedIpAddresses ) )
190+ if ( ! string . IsNullOrEmpty ( this . allowedIPAddresses ) )
192191 {
193- argsBuilder . Append ( string . Format ( CultureInfo . InvariantCulture , " -allowed-ips={0}" , this . allowedIpAddresses ) ) ;
192+ argsBuilder . Append ( string . Format ( CultureInfo . InvariantCulture , " -allowed-ips={0}" , this . allowedIPAddresses ) ) ;
194193 }
195194
196195 return argsBuilder . ToString ( ) ;
0 commit comments