Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

FIXED: 'socat' starts even if 'localhost' or '127.0.0.1' is selected as SMTP_HOST #158

Merged
merged 1 commit into from
Aug 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
FIXED: 'socat' starts even if 'localhost' or '127.0.0.1' is selected …
…as SMTP_HOST
  • Loading branch information
hobbit378 committed Aug 14, 2020
commit 1dd513a0704c85541fc21868056e39f4f49e88c7
2 changes: 1 addition & 1 deletion install/etc/cont-init.d/15-socat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ prepare_service single
# shellcheck disable=SC2034
PROCESS_NAME="socat"

if [ "$SMTP_HOST" != "localhost" ] || [ "$SMTP_HOST" != "127.0.0.1" ] || [ "$SMTP_PORT" != 25 ] && var_true "$ENABLE_SMTP" ; then
if [ "$SMTP_HOST" != "localhost" -a "$SMTP_HOST" != "127.0.0.1" -o "$SMTP_PORT" != 25 ] && var_true "$ENABLE_SMTP" ; then
print_notice "Custom SMTP relay detected, enabling proxy"
service_start 15-socat
else
Expand Down