From 68eb1a7d7ae40613f392c368c69dc73d0ad11e9b Mon Sep 17 00:00:00 2001 From: joegasewicz Date: Mon, 23 Dec 2024 01:27:30 +0000 Subject: [PATCH] handle host.docker.internal #79 --- Makefile | 2 +- config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 69d2cbc..f5b094e 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ docker-push: docker push $(IMG_NAME) docker-remove: - docker rmi $(IMG_NAME) + docker rmi $(IMG_NAME) --force docker_img_exec: docker run --rm -it --entrypoint /bin/bash $(IMG_NAME) diff --git a/config.h b/config.h index 29b9257..60cf706 100644 --- a/config.h +++ b/config.h @@ -26,7 +26,7 @@ #define FMQ_TCP_PORT 8005 #define FMQ_MESSAGE_SIZE 1024 * 5 // Python requests JSON body is always > 10000 -#define FMQ_ALLOWED_HOSTS_LENGTH 20 +#define FMQ_ALLOWED_HOSTS_LENGTH 100 // e.g host.docker.internal #define FMQ_ALLOWED_HOSTS_BYTES 1080 #define FMQ_DEFAULT_ALLOWED_HOSTS "localhost,0.0.0.0,127.0.0.1"