diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-06-01 11:15:00 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-06-01 11:15:00 +0200 |
commit | 1340edd8eafe3b3f2a897fb841f36ccd9b374feb (patch) | |
tree | 810c145e784a8f4789d57f0b09cbfe260ab39423 /src | |
parent | 9429b526fa98fa35f553997af3b4be1681363ff1 (diff) |
- Fix custom search domain ignored (closes issue #36)
Diffstat (limited to 'src')
-rw-r--r-- | src/de/blinkt/openvpn/VpnProfile.java | 6 |
1 files changed, 4 insertions, 2 deletions
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"; } |