From 593cf0436b0a3efc29fcb8f8cc2dd3517ec043c9 Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Fri, 23 Sep 2005 04:28:32 +0000 Subject: [PATCH] Fixed usage of allow-ip/deny-ip in mmsproxy and mmsbox --- mbuni/mmsbox/mmsbox.c | 2 +- mbuni/mmsc/mmsproxy.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mbuni/mmsbox/mmsbox.c b/mbuni/mmsbox/mmsbox.c index f82d67d..368b0de 100644 --- a/mbuni/mmsbox/mmsbox.c +++ b/mbuni/mmsbox/mmsbox.c @@ -1039,7 +1039,7 @@ static void sendmms_func(void *unused) Octstr *err = NULL; if ((u = auth_user(username, password)) != NULL && - is_allowed_ip(sendmms_port.deny_ip, sendmms_port.allow_ip, ip)) { + is_allowed_ip(sendmms_port.allow_ip, sendmms_port.deny_ip, ip)) { Octstr *data, *ctype = NULL, *mmc, *to, *from, *dlr_url; Octstr *rr_url, *subject = NULL; List *lto = NULL, *rh = http_create_empty_headers(); diff --git a/mbuni/mmsc/mmsproxy.c b/mbuni/mmsc/mmsproxy.c index 5d3fdc9..ae682a4 100644 --- a/mbuni/mmsc/mmsproxy.c +++ b/mbuni/mmsc/mmsproxy.c @@ -119,7 +119,7 @@ int main(int argc, char *argv[]) while(rstop == 0 && (h.client = http_accept_request(settings->port, &h.ip, &h.url, &h.headers, &h.body, &h.cgivars)) != NULL) - if (is_allowed_ip(settings->deny_ip, settings->allow_ip, h.ip)) { + if (is_allowed_ip(settings->allow_ip, settings->deny_ip, h.ip)) { MmsHTTPClientInfo *hx = gw_malloc(sizeof *hx); Octstr *profile_url; @@ -1907,7 +1907,7 @@ static void mm7proxy(void *unused) (h.client = http_accept_request(settings->mm7port, &h.ip, &h.url, &h.headers, &h.body, &h.cgivars)) != NULL) - if (is_allowed_ip(settings->deny_ip, settings->allow_ip, h.ip)) { + if (is_allowed_ip(settings->allow_ip, settings->deny_ip, h.ip)) { MmsHTTPClientInfo *hx = gw_malloc(sizeof *hx);