diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-28 13:37:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-28 13:37:22 +0100 |
commit | 04127efebacaaa088668198cdbe52f933367b731 (patch) | |
tree | 5e19bd17ac25d675666f53b19f746681a57e89da /src/rspamadm | |
parent | 8e5517a62b981fedc9e42d1323b066fadf086f1a (diff) | |
download | rspamd-04127efebacaaa088668198cdbe52f933367b731.tar.gz rspamd-04127efebacaaa088668198cdbe52f933367b731.zip |
[Fix] Distinguish remote and local addrs parsing
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/control.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c index e605ecb0a..a089b70f7 100644 --- a/src/rspamadm/control.c +++ b/src/rspamadm/control.c @@ -223,7 +223,8 @@ rspamadm_control (gint argc, gchar **argv, const struct rspamadm_command *_cmd) exit (1); } - if (!rspamd_parse_inet_address (&addr, control_path, strlen (control_path))) { + if (!rspamd_parse_inet_address (&addr, + control_path, strlen (control_path), RSPAMD_INET_ADDRESS_PARSE_DEFAULT)) { rspamd_fprintf (stderr, "bad control path: %s\n", control_path); exit (1); } |