summaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-11-07 22:36:29 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-11-07 22:36:29 +0100
commit924261bc926ce497eecad2d0f10b03088e3fdec7 (patch)
tree4c21116d0f478c8e02bed15bd54ef1e76ef699c8 /doc/examples
parentd032c2244d67ab95a066707af76a7fe41d5fd314 (diff)
downloadfastd-924261bc926ce497eecad2d0f10b03088e3fdec7.tar
fastd-924261bc926ce497eecad2d0f10b03088e3fdec7.zip
examples: openwrt/fastd.init: allow specifying bind interfaces
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/openwrt/fastd.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/openwrt/fastd.init b/doc/examples/openwrt/fastd.init
index f7a939c..325ea12 100644
--- a/doc/examples/openwrt/fastd.init
+++ b/doc/examples/openwrt/fastd.init
@@ -45,7 +45,7 @@ guard_value() {
echo -n "$t"
}
-guard_remote() {
+guard_quotes() {
local t=${1//[^-a-zA-Z0-9\[\].:\"% ]/}
local quotes=${t//[^\"]/}
if [ "${#quotes}" = 0 -o "${#quotes}" = 2 ]; then
@@ -63,7 +63,7 @@ yes_no() {
config_string_config='include $(escape_string "$value");'
config_string_config_peer='include peer $(escape_string "$value");'
config_string_config_peer_dir='include peers from $(escape_string "$value");'
-config_string_bind='bind $(guard_value "$value");'
+config_string_bind='bind $(guard_quotes "$value");'
config_string_method='method $(escape_string "$value");'
config_string_syslog_level='log to syslog level $(guard_value "$value");'
config_string_mode='mode $(guard_value "$value");'
@@ -85,7 +85,7 @@ config_string_peer_group='peer group $(escape_string "$value") {'
peer_string_key='key $(escape_string "$value");'
peer_string_float='float $(yes_no "$value");'
-peer_string_remote='remote $(guard_remote "$value");'
+peer_string_remote='remote $(guard_quotes "$value");'
generate_option() {
local __string=$(eval echo \"\$$2\")