/* Get port to bind to */
if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (cfg, "rest",
- "PORT",
+ "HTTP_PORT",
&port))
{
//No address specified
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Don't know what port to use...\n");
- GNUNET_SCHEDULER_shutdown ();
- return;
+ "Using default port...\n");
+ port = GNUNET_REST_SERVICE_PORT;
}
/* Get address to bind to */
UNIXPATH = $GNUNET_USER_RUNTIME_DIR/gnunet-service-rest.sock
BINARY=gnunet-rest-server
IMMEDIATE_START=YES
+HTTP_PORT=7776
BIND_TO=127.0.0.1
BIND_TO6=::1
REST_ALLOW_HEADERS=Authorization,Accept,Content-Type