summaryrefslogtreecommitdiffstats
path: root/lib/network/connection.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-23 13:45:54 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-23 13:45:54 +0000
commit5b77b46955f8b98a3e7d0b17119dda62f399d750 (patch)
tree96b0f39a8e6a4deec180988c2dc589182d12039d /lib/network/connection.pm
parente4dc623262646fd2b5bbd4412e9c6d3369d7aabe (diff)
downloaddrakx-net-5b77b46955f8b98a3e7d0b17119dda62f399d750.tar
drakx-net-5b77b46955f8b98a3e7d0b17119dda62f399d750.tar.gz
drakx-net-5b77b46955f8b98a3e7d0b17119dda62f399d750.tar.bz2
drakx-net-5b77b46955f8b98a3e7d0b17119dda62f399d750.tar.xz
drakx-net-5b77b46955f8b98a3e7d0b17119dda62f399d750.zip
apply provider settings when provider is set
Diffstat (limited to 'lib/network/connection.pm')
-rw-r--r--lib/network/connection.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm
index 5467d6f..dccbefe 100644
--- a/lib/network/connection.pm
+++ b/lib/network/connection.pm
@@ -172,9 +172,16 @@ sub set_provider {
if ($self->{provider_name} ne N("Unlisted - edit manually")) {
my @providers_data = $self->get_providers;
$self->{provider} = $providers_data[0]{$self->{provider_name}};
+ $self->apply_provider_settings($net);
}
}
+sub apply_provider_settings {
+ my ($self, $net) = @_;
+ $self->guess_protocol($net) if $self->can('guess_protocol');
+ $self->guess_access_settings if $self->can('guess_access_settings');
+}
+
#- check that $self->can('get_providers') first
sub get_provider_settings {
my ($self) = @_;