Module: kamailio
Branch: master
Commit: 0e1aabd76cc59cd498e2e41ddff141bad793e0a7
URL: 
https://github.com/kamailio/kamailio/commit/0e1aabd76cc59cd498e2e41ddff141bad793e0a7

Author: Kamailio Dev <[email protected]>
Committer: Kamailio Dev <[email protected]>
Date: 2023-06-29T10:47:08+02:00

modules: readme files regenerated - microhttpd ... [skip ci]

---

Modified: src/modules/microhttpd/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/0e1aabd76cc59cd498e2e41ddff141bad793e0a7.diff
Patch: 
https://github.com/kamailio/kamailio/commit/0e1aabd76cc59cd498e2e41ddff141bad793e0a7.patch

---

diff --git a/src/modules/microhttpd/README b/src/modules/microhttpd/README
index d4ed745ec2c..cb6fc84fd27 100644
--- a/src/modules/microhttpd/README
+++ b/src/modules/microhttpd/README
@@ -25,8 +25,9 @@ Daniel-Constantin Mierla
 
         3. Parameters
 
-              3.1. listen_port (int)
-              3.2. event_callback (str)
+              3.1. listen_addr (int)
+              3.2. listen_port (int)
+              3.3. event_callback (str)
 
         4. Functions
 
@@ -38,9 +39,10 @@ Daniel-Constantin Mierla
 
    List of Examples
 
-   1.1. Set listen_port parameter
-   1.2. Set event_callback parameter
-   1.3. mhttpd_reply usage
+   1.1. Set listen_addr parameter
+   1.2. Set listen_port parameter
+   1.3. Set event_callback parameter
+   1.4. mhttpd_reply usage
 
 Chapter 1. Admin Guide
 
@@ -54,8 +56,9 @@ Chapter 1. Admin Guide
 
    3. Parameters
 
-        3.1. listen_port (int)
-        3.2. event_callback (str)
+        3.1. listen_addr (int)
+        3.2. listen_port (int)
+        3.3. event_callback (str)
 
    4. Functions
 
@@ -87,21 +90,35 @@ Chapter 1. Admin Guide
 
 3. Parameters
 
-   3.1. listen_port (int)
-   3.2. event_callback (str)
+   3.1. listen_addr (int)
+   3.2. listen_port (int)
+   3.3. event_callback (str)
 
-3.1. listen_port (int)
+3.1. listen_addr (int)
+
+   IPv4 address to listen for HTTP connection. If not set, then it listens
+   on all local addresses (port has to be specified by listen_port
+   parameter).
+
+   Default value is "" (empty - not set).
+
+   Example 1.1. Set listen_addr parameter
+...
+modparam("microhttpd", "listen_addr", "127.0.0.1")
+...
+
+3.2. listen_port (int)
 
    Port to listen for HTTP connection.
 
    Default value is 8280.
 
-   Example 1.1. Set listen_port parameter
+   Example 1.2. Set listen_port parameter
 ...
 modparam("microhttpd", "listen_port", 8284)
 ...
 
-3.2. event_callback (str)
+3.3. event_callback (str)
 
    The name of the function in the kemi configuration file (embedded
    scripting language such as Lua, Python, ...) to be executed instead of
@@ -112,7 +129,7 @@ modparam("microhttpd", "listen_port", 8284)
 
    Default value is 'empty' (no function is executed for events).
 
-   Example 1.2. Set event_callback parameter
+   Example 1.3. Set event_callback parameter
 ...
 modparam("microhttpd", "event_callback", "ksr_microhttpd_event")
 ...
@@ -131,7 +148,7 @@ end
 
    Send back a reply with content-type and body.
 
-   Example 1.3. mhttpd_reply usage
+   Example 1.4. mhttpd_reply usage
 ...
 event_route[microhttpd:request] {
     mhttpd_reply("200", "OK", "text/html",

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]

Reply via email to