From 23c305fb6b9d4b0fdfd453c42726c72c523d60cb Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 1 Jun 2012 11:15:00 +0200 Subject: - Fix custom search domain ignored (closes issue #36) --- src/de/blinkt/openvpn/VpnProfile.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/de') diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index d9c39cab..936a88c6 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -271,10 +271,12 @@ public class VpnProfile implements Serializable{ } if(mOverrideDNS || !mUsePull) { - if(!mDNS1.equals("") && mDNS1!=null) + if(nonNull(mDNS1)) cfg+="dhcp-option DNS " + mDNS1 + "\n"; - if(!mDNS2.equals("") && mDNS2!=null) + if(nonNull(mDNS2)) cfg+="dhcp-option DNS " + mDNS2 + "\n"; + if(nonNull(mSearchDomain)) + cfg+="dhcp-option DOMAIN " + mSearchDomain + "\n"; } -- cgit v1.2.3