Use a constant chat for flag value

This commit is contained in:
JP Meijers 2026-02-21 08:43:56 +02:00
parent bb9fcb96c5
commit 0e93d6e453
No known key found for this signature in database
GPG Key ID: 57E7B2C7D93F3D34
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ bool server_http_context::start() {
// Enable address reuse to allow immediate restart of server
srv->set_socket_options([](socket_t sock) {
int flag = 1;
const char flag = 1;
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(flag));
});