File tree 1 file changed +5
-4
lines changed
ui/webui/resources/cr_components/chromeos/network
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -365,12 +365,13 @@ Polymer({
365
365
366
366
var propertiesToSet = this . getPropertiesToSet_ ( ) ;
367
367
if ( ! this . guid || this . getSource_ ( ) == CrOnc . Source . NONE ) {
368
- // New network configurations default to 'AutoConnect' unless prohibited
369
- // by policy.
368
+ // New non VPN network configurations default to 'AutoConnect' unless
369
+ // prohibited by policy.
370
+ var prohibitAutoConnect = this . globalPolicy &&
371
+ this . globalPolicy . AllowOnlyPolicyNetworksToConnect ;
370
372
CrOnc . setTypeProperty (
371
373
propertiesToSet , 'AutoConnect' ,
372
- ! ( this . globalPolicy &&
373
- this . globalPolicy . AllowOnlyPolicyNetworksToConnect ) ) ;
374
+ this . type != CrOnc . Type . VPN && ! prohibitAutoConnect ) ;
374
375
375
376
// Create the configuration, then connect to it in the callback.
376
377
this . networkingPrivate . createNetwork (
You can’t perform that action at this time.
0 commit comments