From 944fef7b04f67ef18c445d4c825a39952f7d8e73 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 14 Nov 2023 11:11:02 +0100 Subject: core: restrict rest API to 127.0.0.1 Until there is TLS support for this, frontend and ogserver needs to be in the same box by now. --- src/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core.h') diff --git a/src/core.h b/src/core.h index 49a646a..420ae31 100644 --- a/src/core.h +++ b/src/core.h @@ -5,7 +5,7 @@ extern int socket_rest, socket_agent_rest; extern struct ev_loop *og_loop; extern time_t start_time; -int og_socket_server_init(const char *port); +int og_socket_server_init(const char *addr, const char *port); void og_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events); #endif -- cgit v1.2.3-18-g5258