[Xfce4-commits] <xfce4-session:master> Only perform hostname checks when TCP connections are enabled.

Benedikt Meurer noreply at xfce.org
Tue Jul 26 08:22:01 CEST 2011


Updating branch refs/heads/master
         to ba231e2eee82c321f473687e425d455fb36205d9 (commit)
       from 00159a379b8b192615137e59b66d5317493f57f3 (commit)

commit ba231e2eee82c321f473687e425d455fb36205d9
Author: Benedikt Meurer <benedikt.meurer at googlemail.com>
Date:   Tue Jul 26 08:19:09 2011 +0200

    Only perform hostname checks when TCP connections are enabled.
    
    Based on a patch from Guido Berhoerster <gber at opensuse.org>.

 xfce4-session/main.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/xfce4-session/main.c b/xfce4-session/main.c
index 0466f48..8f7c003 100644
--- a/xfce4-session/main.c
+++ b/xfce4-session/main.c
@@ -247,9 +247,12 @@ main (int argc, char **argv)
   dpy = gdk_display_get_default ();
   init_display (manager, dpy, channel, opt_disable_tcp);
 
-  /* verify that the DNS settings are ok */
-  xfsm_splash_screen_next (splash_screen, _("Verifying DNS settings"));
-  xfsm_dns_check ();
+  if (!opt_disable_tcp && xfconf_channel_get_bool (channel, "/security/EnableTcp", FALSE))
+    {
+      /* verify that the DNS settings are ok */
+      xfsm_splash_screen_next (splash_screen, _("Verifying DNS settings"));
+      xfsm_dns_check ();
+    }
 
   xfsm_splash_screen_next (splash_screen, _("Loading session data"));
 


More information about the Xfce4-commits mailing list