diff options
-rw-r--r-- | e-util/e-client-selector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e-util/e-client-selector.c b/e-util/e-client-selector.c index 01ff2d432d..740d456ed2 100644 --- a/e-util/e-client-selector.c +++ b/e-util/e-client-selector.c @@ -397,7 +397,7 @@ client_selector_constructed (GObject *object) /* XXX GNetworkAddress will happily take a NULL host * but then crash while enumerating the address, * so watch out for that. */ - if (host == NULL) + if (host == NULL || !*host || g_ascii_strcasecmp (host, "localhost") == 0) g_clear_object (&socket_connectable); if (socket_connectable != NULL) { |