1
0
forked from pool/xfce4-session
xfce4-session/xfce4-session-4.8.1-disable-hostname-check.patch

32 lines
1.1 KiB
Diff

commit ba231e2eee82c321f473687e425d455fb36205d9
Author: Benedikt Meurer <benedikt.meurer@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@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"));