diff options
-rw-r--r-- | lib/network/connection/cellular.pm | 1 | ||||
-rw-r--r-- | lib/network/connection/ppp.pm | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm index b0e6bb0..e7a842a 100644 --- a/lib/network/connection/cellular.pm +++ b/lib/network/connection/cellular.pm @@ -52,6 +52,7 @@ sub get_access_settings { sub set_ppp_settings { my ($self) = @_; + $self->{access}{use_chat} = 1; $self->{access}{dial_number} = "*99***$self->{access}{cid}#"; } diff --git a/lib/network/connection/ppp.pm b/lib/network/connection/ppp.pm index 6efdf81..496ccda 100644 --- a/lib/network/connection/ppp.pm +++ b/lib/network/connection/ppp.pm @@ -132,7 +132,7 @@ sub write_peer { sub write_ppp_settings { my ($self) = @_; $self->write_secrets if $self->{access}{login}; - $self->write_chat if $self->{access}{dial_number}; + $self->write_chat if $self->{access}{use_chat}; $self->write_peer; } |