Make bind and method lists instead of options

This commit is contained in:
Matthias Schiffer 2012-11-19 18:36:02 +01:00
parent d6cbae9885
commit 8f284eac0e
2 changed files with 6 additions and 6 deletions

View File

@ -23,13 +23,13 @@ config fastd sample_config
# IP address and port of the local end, optional
# 'any' can be used to bind to both IPv4 and IPv6
# If the port is 0 fastd will bind to a random port
# option bind 'any:1337'
# option bind '0.0.0.0:1337'
# option bind '[::]:1337'
# list bind 'any:1337'
# list bind '0.0.0.0:1337'
# list bind '[::]:1337'
# "method null" uses no encryption or MAC
# "method xsalsa20-poly1305" uses the XSalsa20 encryption ad the Poly1305 MAC
option method 'xsalsa20-poly1305'
list method 'xsalsa20-poly1305'
# "mode tap" will create an ethernet tunnel (tap device),
# "mode tun" will create an IP tunnel (tun device).

View File

@ -79,8 +79,8 @@ start_instance() {
return 1
fi
append_opts_list "$s" config config_peer_dir
append_opts "$s" syslog_level bind method mode interface mtu
append_opts_list "$s" config config_peer_dir bind method
append_opts "$s" syslog_level mode interface mtu
append_opts_bool "$s" forward
mkdir -p "$TMP_FASTD"