1
0
Fork 0

http-interface-name added

This commit is contained in:
bagyenda 2007-09-14 04:14:19 +00:00
parent d2c8efd1aa
commit 30ed2d83f6
4 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,5 @@
2007-09-14 P. A. Bagyenda <bagyenda@dsmagic.com>
* Added http-interface-name config parameter
2007-09-06 P. A. Bagyenda <bagyenda@dsmagic.com>
* Added 'extras' directory, containing miscellaneous Mbuni addons.
2007-08-27 P. A. Bagyenda <bagyenda@dsmagic.com>

View File

@ -571,9 +571,10 @@ beginning of a new group with the given name.</p>
<p >The core group is
<i>core</i> and defines the log file location, log level (amount of debugging
information &#8211; the lower the number the more debugging
information), the location of the access log, the HTTP proxy
host/port if any (HTTP proxy host/port
is specified using the exact same parameters as used by Kannel.) and
information), the location of the access log, the HTTP interface to
listen on for incoming connections, HTTP proxy
host/port if any (HTTP proxy host/port and HTTP interface name
are specified using the exact same parameters as used by Kannel.) and
SSL client and server certificate files to be used for incoming and
outgoing HTTPS connections, if Kannel and Mbuni are compiled to have
SSL enabled. The syntax for specifying SSL certificates is exactly as
@ -591,6 +592,7 @@ log-level
= 0
<br>
access-log = log/access.log<br>
http-interface-name = &quot;*&quot;<br>
</tt>
</p>
<p>

View File

@ -36,7 +36,7 @@ SINGLE_GROUP(core,
OCTSTR(ssl-server-cert-file)
OCTSTR(ssl-server-key-file)
OCTSTR(ssl-trusted-ca-file)
OCTSTR(http-interface-name)
)
SINGLE_GROUP(mbuni,

View File

@ -38,6 +38,7 @@ int mms_load_core_settings(mCfgGrp *cgrp)
{
Octstr *log, *alog;
Octstr *http_proxy_host;
Octstr *our_interface;
long loglevel;
if (cgrp == NULL)
@ -59,6 +60,11 @@ int mms_load_core_settings(mCfgGrp *cgrp)
octstr_destroy(alog);
}
if ((our_interface = mms_cfg_get(cgrp, octstr_imm("http-interface-name"))) != NULL) {
http_set_interface(our_interface);
octstr_destroy(our_interface);
}
/* look for http proxy. If set, use it. */
if ((http_proxy_host = mms_cfg_get(cgrp, octstr_imm("http-proxy-host"))) != NULL) {