+User notification of the probe timeout.
[udpgate.git] / src / main.c
index f9d1f5d..a0917e6 100644 (file)
@@ -36,6 +36,7 @@
 #include "main.h"      /* self */
 #include "ui-line.h"
 #include "network.h"
+#include "configuration.h"
 
 #ifdef HAVE_GNOME
 #include "ui-gnome.h"
@@ -142,6 +143,11 @@ gboolean no_gnome;
        bindtextdomain(PACKAGE,LOCALEDIR);
        textdomain(PACKAGE);
 
+       /* Read it before the command-line parsing to get the default value
+        * of 'optarg_port' displayable by 'POPT_ARGFLAG_SHOW_DEFAULT'.
+        */
+       configuration_read();
+
        if (argv[1] && !strcmp(argv[1],"--text"))
                optarg_text=1;
 
@@ -227,5 +233,7 @@ guint handler_id;
        else
                (*ui_interactive)();
 
+       configuration_write();
+
        return EXIT_SUCCESS;
 }