@@ -33,7 +33,7 @@ public abstract class ChromiumDriverService : DriverService
33
33
private string logPath = string . Empty ;
34
34
private string urlPathPrefix = string . Empty ;
35
35
private string portServerAddress = string . Empty ;
36
- private string whitelistedIpAddresses = string . Empty ;
36
+ private string allowedIpAddresses = string . Empty ;
37
37
private int adbPort = - 1 ;
38
38
private bool disableBuildCheck ;
39
39
private bool enableVerboseLogging ;
@@ -123,10 +123,22 @@ public bool EnableAppendLog
123
123
/// connect to this instance of the Chrome driver. Defaults to an empty string,
124
124
/// which means only the local loopback address can connect.
125
125
/// </summary>
126
- public string WhitelistedIPAddresses
126
+ [ Obsolete ( "Use AllowedIpAddresses" ) ]
127
+ public string WhitelistedIpAddresses
127
128
{
128
- get { return this . whitelistedIpAddresses ; }
129
- set { this . whitelistedIpAddresses = value ; }
129
+ get { return this . allowedIpAddresses ; }
130
+ set { this . allowedIpAddresses = value ; }
131
+ }
132
+
133
+ /// <summary>
134
+ /// Gets or sets the comma-delimited list of IP addresses that are approved to
135
+ /// connect to this instance of the Chrome driver. Defaults to an empty string,
136
+ /// which means only the local loopback address can connect.
137
+ /// </summary>
138
+ public string AllowedIpAddresses
139
+ {
140
+ get { return this . allowedIpAddresses ; }
141
+ set { this . allowedIpAddresses = value ; }
130
142
}
131
143
132
144
/// <summary>
@@ -177,9 +189,9 @@ protected override string CommandLineArguments
177
189
argsBuilder . AppendFormat ( CultureInfo . InvariantCulture , " --port-server={0}" , this . portServerAddress ) ;
178
190
}
179
191
180
- if ( ! string . IsNullOrEmpty ( this . whitelistedIpAddresses ) )
192
+ if ( ! string . IsNullOrEmpty ( this . allowedIpAddresses ) )
181
193
{
182
- argsBuilder . Append ( string . Format ( CultureInfo . InvariantCulture , " -whitelisted -ips={0}" , this . whitelistedIpAddresses ) ) ;
194
+ argsBuilder . Append ( string . Format ( CultureInfo . InvariantCulture , " -allowed -ips={0}" , this . allowedIpAddresses ) ) ;
183
195
}
184
196
185
197
return argsBuilder . ToString ( ) ;
0 commit comments