Hi,

this patchset fixes this issue
https://bugs.meego.com/show_bug.cgi?id=25966
where VPN server pushed nameservers are lost.

Patch 1 sets the nameservers in service if we receive DNS data from
vpnd. We also sanitize the code so that we do not do unnecessary
conversion betwen string list and array.

OpenVPN server can push DNS servers to vpnd. The list of servers
are received in any order and we must sort the list ourselves.
The old code did not preserve the nameserver ordering. This is
fixed in patch 2.

Patch 3 fixes the actual bug. We need to send the nameservers when
the VPN connection is established.


Cheers,
Jukka


Jukka Rissanen (3):
  provider: Set nameservers if we receive them from vpnd
  openvpn: Set the nameservers in correct order
  vpn-provider: Nameservers were not sent to connmand vpn plugin

 include/provider.h    |  2 +-
 plugins/vpn.c         |  9 +++++-
 src/provider.c        | 14 +++-----
 vpn/plugins/openvpn.c | 88 +++++++++++++++++++++++++++++++++++++++++----------
 vpn/vpn-provider.c    | 48 ++++++++++++++++------------
 5 files changed, 111 insertions(+), 50 deletions(-)

-- 
1.7.11.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to