wicd (1.7.0+ds1-5) 09-allow_empty_DNS.patch

Summary

 gtk/gui.py |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

From: David Paleino <dapal@debian.org>
Subject: allow empty DNS fields, one might run a local forwarder
Bug-Debian: http://bugs.debian.org/552598
Forwarded: yes, https://bugs.launchpad.net/wicd/+bug/492795

---
 wicd/gui.py |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

--- wicd.orig/gtk/gui.py
+++ wicd/gtk/gui.py
@@ -598,11 +598,8 @@ class appGui(object):
                 
         if entry.chkbox_static_dns.get_active() and \
            not entry.chkbox_global_dns.get_active():
-            req_entlist.append(entry.txt_dns_1)
-            # Only append additional dns entries if they're entered.
-            for ent in [entry.txt_dns_2, entry.txt_dns_3]:
-                if ent.get_text() != "":
-                    opt_entlist.append(ent)
+            for ent in [entry.txt_dns_1, entry.txt_dns_2, entry.txt_dns_3]:
+                opt_entlist.append(ent)
         
         # Required entries.
         for lblent in req_entlist: