Fixed usage of allow-ip/deny-ip in mmsproxy and mmsbox
This commit is contained in:
parent
c5c0cab256
commit
593cf0436b
|
@ -1039,7 +1039,7 @@ static void sendmms_func(void *unused)
|
||||||
Octstr *err = NULL;
|
Octstr *err = NULL;
|
||||||
|
|
||||||
if ((u = auth_user(username, password)) != 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 *data, *ctype = NULL, *mmc, *to, *from, *dlr_url;
|
||||||
Octstr *rr_url, *subject = NULL;
|
Octstr *rr_url, *subject = NULL;
|
||||||
List *lto = NULL, *rh = http_create_empty_headers();
|
List *lto = NULL, *rh = http_create_empty_headers();
|
||||||
|
|
|
@ -119,7 +119,7 @@ int main(int argc, char *argv[])
|
||||||
while(rstop == 0 && (h.client = http_accept_request(settings->port,
|
while(rstop == 0 && (h.client = http_accept_request(settings->port,
|
||||||
&h.ip, &h.url, &h.headers,
|
&h.ip, &h.url, &h.headers,
|
||||||
&h.body, &h.cgivars)) != NULL)
|
&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);
|
MmsHTTPClientInfo *hx = gw_malloc(sizeof *hx);
|
||||||
Octstr *profile_url;
|
Octstr *profile_url;
|
||||||
|
|
||||||
|
@ -1907,7 +1907,7 @@ static void mm7proxy(void *unused)
|
||||||
(h.client = http_accept_request(settings->mm7port,
|
(h.client = http_accept_request(settings->mm7port,
|
||||||
&h.ip, &h.url, &h.headers,
|
&h.ip, &h.url, &h.headers,
|
||||||
&h.body, &h.cgivars)) != NULL)
|
&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);
|
MmsHTTPClientInfo *hx = gw_malloc(sizeof *hx);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue