aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmail-remote
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmail-remote')
-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) ;
}