Don't automatically fill in a capture filter if CLIENTNAME is set to
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 1 Dec 2003 20:27:09 +0000 (20:27 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 1 Dec 2003 20:27:09 +0000 (20:27 +0000)
"Console".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9130 f5534014-38df-0310-8fa8-9805f1628bb7

util.c

diff --git a/util.c b/util.c
index e91120b7efef8ad2d513beb954774a965d433161..1b245c3e3cddb7f3cdc7241eb15c6606d056f4d9 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1,7 +1,7 @@
 /* util.c
  * Utility routines
  *
- * $Id: util.c,v 1.72 2003/11/18 04:16:28 gerald Exp $
+ * $Id: util.c,v 1.73 2003/12/01 20:27:09 gerald Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -706,8 +706,10 @@ gchar *get_conn_cfilter(void) {
                        return filter_str->str;
                }
        } else if ((env = getenv("CLIENTNAME")) != NULL) {
-               g_string_sprintf(filter_str, "not ip host %s", env);
-               return filter_str->str;
+               if (g_strcasecmp("console", env) != 0) {
+                       g_string_sprintf(filter_str, "not ip host %s", env);
+                       return filter_str->str;
+               }
        }
        return "";
 }