[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17408 - gnunet-gtk/src/setup
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17408 - gnunet-gtk/src/setup |
Date: |
Wed, 12 Oct 2011 15:06:43 +0200 |
Author: grothoff
Date: 2011-10-12 15:06:43 +0200 (Wed, 12 Oct 2011)
New Revision: 17408
Modified:
gnunet-gtk/src/setup/gnunet-setup-options.c
Log:
remove sections on deletion from GUI, remove domain if there are no more
redirects
Modified: gnunet-gtk/src/setup/gnunet-setup-options.c
===================================================================
--- gnunet-gtk/src/setup/gnunet-setup-options.c 2011-10-12 12:51:34 UTC (rev
17407)
+++ gnunet-gtk/src/setup/gnunet-setup-options.c 2011-10-12 13:06:43 UTC (rev
17408)
@@ -757,7 +757,6 @@
{
GNUNET_free (tmp);
}
-
GNUNET_asprintf (&tmp, "%u:%s:%u %s", srcport, targethost, targetport,
(0 ==
strcasecmp ("tcp",
@@ -793,7 +792,9 @@
if (strlen (pos->tcpred) > 0)
GNUNET_CONFIGURATION_set_value_string (cfg, pos->section,
"TCP_REDIRECTS",
pos->tcpred);
- GNUNET_CONFIGURATION_set_value_number (cfg, pos->section, "TTL", pos->ttl);
+ if ( (strlen (pos->udpred) > 0) ||
+ (strlen (pos->tcpred) > 0) )
+ GNUNET_CONFIGURATION_set_value_number (cfg, pos->section, "TTL",
pos->ttl);
GNUNET_free_non_null (pos->altnames);
GNUNET_free (pos->tcpred);
GNUNET_free (pos->udpred);
@@ -848,6 +849,8 @@
/* deletion */
gtk_list_store_remove (ls, &iter);
g_free (old);
+ /* update configuration */
+ update_vpn_dns_configuration (tm);
return;
}
/* update model */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17408 - gnunet-gtk/src/setup,
gnunet <=