diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-19 13:06:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-19 13:06:49 +0000 |
commit | 2287a9092a9300cc56a05a9e83771e0bf05dc064 (patch) | |
tree | 7408f8d9e2b5e9d01806e1347f1bb0f38918ab7a /src/libserver/url.c | |
parent | 970a8f6bf3b0f0b601567483c29f91af72d99008 (diff) | |
download | rspamd-2287a9092a9300cc56a05a9e83771e0bf05dc064.tar.gz rspamd-2287a9092a9300cc56a05a9e83771e0bf05dc064.zip |
Use flags for urls
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index 186697483..f0a65df8c 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1093,7 +1093,7 @@ rspamd_url_is_ip (struct rspamd_url *uri, rspamd_mempool_t *pool) uri->hostlen = strlen (uri->host); uri->tld = uri->host; uri->tldlen = uri->hostlen; - uri->is_numeric = TRUE; + uri->flags |= RSPAMD_URL_FLAG_NUMERIC; ret = TRUE; } else if (inet_pton (AF_INET6, buf, &in6) == 1) { @@ -1103,7 +1103,7 @@ rspamd_url_is_ip (struct rspamd_url *uri, rspamd_mempool_t *pool) uri->hostlen = strlen (uri->host); uri->tld = uri->host; uri->tldlen = uri->hostlen; - uri->is_numeric = TRUE; + uri->flags |= RSPAMD_URL_FLAG_NUMERIC; ret = TRUE; } else { @@ -1175,7 +1175,7 @@ rspamd_url_is_ip (struct rspamd_url *uri, rspamd_mempool_t *pool) uri->hostlen = strlen (uri->host); uri->tld = uri->host; uri->tldlen = uri->hostlen; - uri->is_numeric = TRUE; + uri->flags |= RSPAMD_URL_FLAG_NUMERIC|RSPAMD_URL_FLAG_OBSCURED; ret = TRUE; } } |