http-interface-name added
This commit is contained in:
parent
d2c8efd1aa
commit
30ed2d83f6
|
@ -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>
|
2007-09-06 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||||
* Added 'extras' directory, containing miscellaneous Mbuni addons.
|
* Added 'extras' directory, containing miscellaneous Mbuni addons.
|
||||||
2007-08-27 P. A. Bagyenda <bagyenda@dsmagic.com>
|
2007-08-27 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||||
|
|
|
@ -571,9 +571,10 @@ beginning of a new group with the given name.</p>
|
||||||
<p >The core group is
|
<p >The core group is
|
||||||
<i>core</i> and defines the log file location, log level (amount of debugging
|
<i>core</i> and defines the log file location, log level (amount of debugging
|
||||||
information – the lower the number the more debugging
|
information – the lower the number the more debugging
|
||||||
information), the location of the access log, the HTTP proxy
|
information), the location of the access log, the HTTP interface to
|
||||||
host/port if any (HTTP proxy host/port
|
listen on for incoming connections, HTTP proxy
|
||||||
is specified using the exact same parameters as used by Kannel.) and
|
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
|
SSL client and server certificate files to be used for incoming and
|
||||||
outgoing HTTPS connections, if Kannel and Mbuni are compiled to have
|
outgoing HTTPS connections, if Kannel and Mbuni are compiled to have
|
||||||
SSL enabled. The syntax for specifying SSL certificates is exactly as
|
SSL enabled. The syntax for specifying SSL certificates is exactly as
|
||||||
|
@ -591,6 +592,7 @@ log-level
|
||||||
= 0
|
= 0
|
||||||
<br>
|
<br>
|
||||||
access-log = log/access.log<br>
|
access-log = log/access.log<br>
|
||||||
|
http-interface-name = "*"<br>
|
||||||
</tt>
|
</tt>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -36,7 +36,7 @@ SINGLE_GROUP(core,
|
||||||
OCTSTR(ssl-server-cert-file)
|
OCTSTR(ssl-server-cert-file)
|
||||||
OCTSTR(ssl-server-key-file)
|
OCTSTR(ssl-server-key-file)
|
||||||
OCTSTR(ssl-trusted-ca-file)
|
OCTSTR(ssl-trusted-ca-file)
|
||||||
|
OCTSTR(http-interface-name)
|
||||||
)
|
)
|
||||||
|
|
||||||
SINGLE_GROUP(mbuni,
|
SINGLE_GROUP(mbuni,
|
||||||
|
|
|
@ -38,6 +38,7 @@ int mms_load_core_settings(mCfgGrp *cgrp)
|
||||||
{
|
{
|
||||||
Octstr *log, *alog;
|
Octstr *log, *alog;
|
||||||
Octstr *http_proxy_host;
|
Octstr *http_proxy_host;
|
||||||
|
Octstr *our_interface;
|
||||||
long loglevel;
|
long loglevel;
|
||||||
|
|
||||||
if (cgrp == NULL)
|
if (cgrp == NULL)
|
||||||
|
@ -59,6 +60,11 @@ int mms_load_core_settings(mCfgGrp *cgrp)
|
||||||
octstr_destroy(alog);
|
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. */
|
/* look for http proxy. If set, use it. */
|
||||||
if ((http_proxy_host = mms_cfg_get(cgrp, octstr_imm("http-proxy-host"))) != NULL) {
|
if ((http_proxy_host = mms_cfg_get(cgrp, octstr_imm("http-proxy-host"))) != NULL) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue