Update entrypoint.sh to support both IPv6 and IPv4

Using TCP6-LISTEN instead of just TCP-LISTEN will make `socat` bind to `::` and `0.0.0.0`
This commit is contained in:
Nic0w 2025-05-29 15:29:54 +02:00 committed by GitHub
parent e788a0098e
commit d63fc38bae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,8 +23,8 @@ else
# socat will make the conn appear to come from 127.0.0.1 # socat will make the conn appear to come from 127.0.0.1
# ProtonMail Bridge currently expects that. # ProtonMail Bridge currently expects that.
# It also allows us to bind to the real ports :) # It also allows us to bind to the real ports :)
socat TCP-LISTEN:25,fork TCP:127.0.0.1:1025 & socat TCP6-LISTEN:25,fork TCP:127.0.0.1:1025 &
socat TCP-LISTEN:143,fork TCP:127.0.0.1:1143 & socat TCP6-LISTEN:143,fork TCP:127.0.0.1:1143 &
# Start protonmail # Start protonmail
# Fake a terminal, so it does not quit because of EOF... # Fake a terminal, so it does not quit because of EOF...