diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-10 20:56:09 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-10 20:56:09 +0100 |
commit | 5cf53de34fa410702ca59437cdf3f304366c3c55 (patch) | |
tree | 9ed15f44dfe6e38e7696aecbfd622e6775d5c4e2 /plugins/check_smtp.d | |
parent | 897fef937096c6aae32f9cd80d7b867558596bc5 (diff) | |
download | monitoring-plugins-5cf53de3.tar.gz |
check_smtp: fix positional host logic
Diffstat (limited to 'plugins/check_smtp.d')
-rw-r--r-- | plugins/check_smtp.d/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_smtp.d/config.h b/plugins/check_smtp.d/config.h index c8660445..0a6511ef 100644 --- a/plugins/check_smtp.d/config.h +++ b/plugins/check_smtp.d/config.h | |||
@@ -52,7 +52,7 @@ typedef struct { | |||
52 | check_smtp_config check_smtp_config_init() { | 52 | check_smtp_config check_smtp_config_init() { |
53 | check_smtp_config tmp = { | 53 | check_smtp_config tmp = { |
54 | .server_port = SMTP_PORT, | 54 | .server_port = SMTP_PORT, |
55 | .server_address = strdup("localhost"), | 55 | .server_address = NULL, |
56 | .localhostname = NULL, | 56 | .localhostname = NULL, |
57 | 57 | ||
58 | .server_expect = SMTP_EXPECT, | 58 | .server_expect = SMTP_EXPECT, |