Skip to content

Commit

Permalink
dns_cache: fix examples
Browse files Browse the repository at this point in the history
Credits go to Pete Kelly for reporting it.

(cherry picked from commit 7cdd3ee)
  • Loading branch information
razvancrainea committed Oct 19, 2016
1 parent 1c7e19d commit 14f72c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions modules/dns_cache/README
Expand Up @@ -8,7 +8,7 @@ Edited by

Vladut-Stefan Paiu

Copyright © 2012 www.opensips-solutions.com
Copyright 2012 www.opensips-solutions.com
__________________________________________________________

Table of Contents
Expand Down Expand Up @@ -61,9 +61,9 @@ Chapter 1. Admin Guide
Example 1.1. Set cachedb_url parameter
...
#use internal cachedb_local module
modparam("dns_cache", "cachedb_url","local://");
modparam("dns_cache", "cachedb_url","local://")
#use cachedb_memcached module with memcached server at 192.168.2.130
modparam("dns_cache", "cachedb_url","memcached://192.168.2.130:8888/");
modparam("dns_cache", "cachedb_url","memcached://192.168.2.130:8888/")
...

1.3.2. blacklist_timeout (int)
Expand All @@ -73,7 +73,7 @@ modparam("dns_cache", "cachedb_url","memcached://192.168.2.130:8888/");

Example 1.2. Set blacklist_timeout parameter
...
modparam("dns_cache", "blacklist_timeout",7200); # 2 hours
modparam("dns_cache", "blacklist_timeout",7200) # 2 hours
...

1.4. Exported Functions
Expand Down
6 changes: 3 additions & 3 deletions modules/dns_cache/doc/dns_cache_admin.xml
Expand Up @@ -44,9 +44,9 @@
<programlisting format="linespecific">
...
#use internal cachedb_local module
modparam("dns_cache", "cachedb_url","local://");
modparam("dns_cache", "cachedb_url","local://")
#use cachedb_memcached module with memcached server at 192.168.2.130
modparam("dns_cache", "cachedb_url","memcached://192.168.2.130:8888/");
modparam("dns_cache", "cachedb_url","memcached://192.168.2.130:8888/")
...
</programlisting>
</example>
Expand All @@ -64,7 +64,7 @@ modparam("dns_cache", "cachedb_url","memcached://192.168.2.130:8888/");
<title>Set <varname>blacklist_timeout</varname> parameter</title>
<programlisting format="linespecific">
...
modparam("dns_cache", "blacklist_timeout",7200); # 2 hours
modparam("dns_cache", "blacklist_timeout",7200) # 2 hours
...
</programlisting>
</example>
Expand Down

0 comments on commit 14f72c6

Please sign in to comment.