aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2003-12-01 20:27:09 +0000
committerGerald Combs <gerald@wireshark.org>2003-12-01 20:27:09 +0000
commit4306925479e0f0825ea57d7b5734e9e61b297c34 (patch)
tree4348fbd3286bffd4994be3aeccb9eb86bcc5c48f /util.c
parent9e396b2e9e759dcfa6703ddb6a3c66f2071868d0 (diff)
Don't automatically fill in a capture filter if CLIENTNAME is set to
"Console". svn path=/trunk/; revision=9130
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/util.c b/util.c
index e91120b7ef..1b245c3e3c 100644
--- 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 "";
}