diff options
Diffstat (limited to 'lib/network/connection')
-rw-r--r-- | lib/network/connection/cellular.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm index 3b9c6e0..11e6be1 100644 --- a/lib/network/connection/cellular.pm +++ b/lib/network/connection/cellular.pm @@ -45,7 +45,7 @@ sub guess_apn_from_chat { sub guess_provider_settings { my ($self) = @_; my $settings = $self->load_cellular_settings; - my $apn = $self->guess_apn_from_chat || $settings && $settings->{APN}; + my $apn = $settings && $settings->{APN} || $self->guess_apn_from_chat; if ($apn) { my @providers_data = $self->get_providers; $self->{provider_name} ||= find { $providers_data[0]{$_}{apn} eq $apn } keys %{$providers_data[0]}; |