diff options
Diffstat (limited to 'src/rest')
-rw-r--r-- | src/rest/gnunet-rest-server.c | 7 | ||||
-rw-r--r-- | src/rest/rest.conf | 1 |
2 files changed, 4 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 */ |
diff --git a/src/rest/rest.conf b/src/rest/rest.conf index dfeedd26c..71fef8aa1 100644 --- a/src/rest/rest.conf +++ b/src/rest/rest.conf | |||
@@ -2,6 +2,7 @@ | |||
2 | UNIXPATH = $GNUNET_USER_RUNTIME_DIR/gnunet-service-rest.sock | 2 | UNIXPATH = $GNUNET_USER_RUNTIME_DIR/gnunet-service-rest.sock |
3 | BINARY=gnunet-rest-server | 3 | BINARY=gnunet-rest-server |
4 | IMMEDIATE_START=YES | 4 | IMMEDIATE_START=YES |
5 | HTTP_PORT=7776 | ||
5 | BIND_TO=127.0.0.1 | 6 | BIND_TO=127.0.0.1 |
6 | BIND_TO6=::1 | 7 | BIND_TO6=::1 |
7 | REST_ALLOW_HEADERS=Authorization,Accept,Content-Type | 8 | REST_ALLOW_HEADERS=Authorization,Accept,Content-Type |