From 056fd6ad267caab37d5d329df425926d8ef55f06 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 25 Feb 2026 20:43:08 +0100 Subject: [PATCH] Enhance socat command options for improved connection handling in entrypoint scripts --- build/entrypoint.sh | 4 ++-- deb/entrypoint.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 463c94b..bf2924d 100644 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -29,8 +29,8 @@ else # socat will make the conn appear to come from 127.0.0.1 # ProtonMail Bridge currently expects that. # It also allows us to bind to the real ports :) - socat TCP-LISTEN:25,fork TCP:127.0.0.1:1025 & - socat TCP-LISTEN:143,fork TCP:127.0.0.1:1143 & + socat TCP-LISTEN:25,fork,reuseaddr TCP:127.0.0.1:1025,nodelay & + socat TCP-LISTEN:143,fork,reuseaddr TCP:127.0.0.1:1143,nodelay & # Start protonmail # Fake a terminal, so it does not quit because of EOF... diff --git a/deb/entrypoint.sh b/deb/entrypoint.sh index 94c9f77..764ad0a 100644 --- a/deb/entrypoint.sh +++ b/deb/entrypoint.sh @@ -43,8 +43,8 @@ else # socat will make the conn appear to come from 127.0.0.1 # ProtonMail Bridge currently expects that. # It also allows us to bind to the real ports :) - socat TCP-LISTEN:25,fork TCP:127.0.0.1:1025 & - socat TCP-LISTEN:143,fork TCP:127.0.0.1:1143 & + socat TCP-LISTEN:25,fork,reuseaddr TCP:127.0.0.1:1025,nodelay & + socat TCP-LISTEN:143,fork,reuseaddr TCP:127.0.0.1:1143,nodelay & # Start protonmail # Fake a terminal, so it does not quit because of EOF...