summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ppp.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-23 10:20:59 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-23 10:20:59 +0000
commite4dc623262646fd2b5bbd4412e9c6d3369d7aabe (patch)
tree4d32533bac1d9077fb3dee656ab06473adfa4be6 /lib/network/connection/ppp.pm
parentf7d861d97fa97f41f595fed19236bbbea6ec82b7 (diff)
downloaddrakx-net-e4dc623262646fd2b5bbd4412e9c6d3369d7aabe.tar
drakx-net-e4dc623262646fd2b5bbd4412e9c6d3369d7aabe.tar.gz
drakx-net-e4dc623262646fd2b5bbd4412e9c6d3369d7aabe.tar.bz2
drakx-net-e4dc623262646fd2b5bbd4412e9c6d3369d7aabe.tar.xz
drakx-net-e4dc623262646fd2b5bbd4412e9c6d3369d7aabe.zip
do not write chat connect line if not needed
Diffstat (limited to 'lib/network/connection/ppp.pm')
-rw-r--r--lib/network/connection/ppp.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection/ppp.pm b/lib/network/connection/ppp.pm
index 78eafa8..5ece06e 100644
--- a/lib/network/connection/ppp.pm
+++ b/lib/network/connection/ppp.pm
@@ -115,7 +115,7 @@ sub build_peer {
#- connect
#- pty
#- plugin
- if ($self->{access}{dial_number}) {
+ if ($self->{access}{use_chat}) {
my $chat_file = $self->get_chat_file;
$self->{access}{peer}{connect} ||= qq("/usr/sbin/chat -v -f $chat_file");
}