aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-02-10 13:05:55 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-02-10 13:05:55 +0000
commit443a09e7bb6fcd6e01d9d0df0dfb3e15fa004410 (patch)
treedae45b730a00efb3fc9c4aaddf614a622e480a9b
parentf27ce47f1cdc338b1c4a49a7e3bdf8df3c361411 (diff)
downloadsmtpd-starttls-proxy-443a09e7bb6fcd6e01d9d0df0dfb3e15fa004410.tar.gz
Can we get a default smtproutes_match now please?
-rw-r--r--src/qmail-remote/qmail-remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmail-remote/qmail-remote.c b/src/qmail-remote/qmail-remote.c
index 49c13e1..a644352 100644
--- a/src/qmail-remote/qmail-remote.c
+++ b/src/qmail-remote/qmail-remote.c
@@ -177,6 +177,7 @@ int main (int argc, char const *const *argv)
size_t hostlen = strlen(host) ;
for (size_t i = 0 ; i < hostlen ; i++) if (host[i] == '.')
if (smtproutes_match(&routes, host + i + 1, &storage, &hostpos, &port)) break ;
+ if (!hostpos) smtproutes_match(&routes, "", &storage, &hostpos, &port) ;
}
smtproutes_free(&routes) ;
}