aboutsummaryrefslogtreecommitdiff
path: root/src/rest/gnunet-rest-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest/gnunet-rest-server.c')
-rw-r--r--src/rest/gnunet-rest-server.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
index 813525404..ba1d595fd 100644
--- a/src/rest/gnunet-rest-server.c
+++ b/src/rest/gnunet-rest-server.c
@@ -824,14 +824,13 @@ run (void *cls,
824 824
825 /* Get port to bind to */ 825 /* Get port to bind to */
826 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (cfg, "rest", 826 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (cfg, "rest",
827 "PORT", 827 "HTTP_PORT",
828 &port)) 828 &port))
829 { 829 {
830 //No address specified 830 //No address specified
831 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 831 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
832 "Don't know what port to use...\n"); 832 "Using default port...\n");
833 GNUNET_SCHEDULER_shutdown (); 833 port = GNUNET_REST_SERVICE_PORT;
834 return;
835 } 834 }
836 835
837 /* Get address to bind to */ 836 /* Get address to bind to */