1
0
Fork 0

Fixed usage of allow-ip/deny-ip in mmsproxy and mmsbox

This commit is contained in:
bagyenda 2005-09-23 04:28:32 +00:00
parent c5c0cab256
commit 593cf0436b
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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);