Make bind and method lists instead of options
This commit is contained in:
parent
d6cbae9885
commit
8f284eac0e
|
@ -23,13 +23,13 @@ config fastd sample_config
|
||||||
# IP address and port of the local end, optional
|
# IP address and port of the local end, optional
|
||||||
# 'any' can be used to bind to both IPv4 and IPv6
|
# 'any' can be used to bind to both IPv4 and IPv6
|
||||||
# If the port is 0 fastd will bind to a random port
|
# If the port is 0 fastd will bind to a random port
|
||||||
# option bind 'any:1337'
|
# list bind 'any:1337'
|
||||||
# option bind '0.0.0.0:1337'
|
# list bind '0.0.0.0:1337'
|
||||||
# option bind '[::]:1337'
|
# list bind '[::]:1337'
|
||||||
|
|
||||||
# "method null" uses no encryption or MAC
|
# "method null" uses no encryption or MAC
|
||||||
# "method xsalsa20-poly1305" uses the XSalsa20 encryption ad the Poly1305 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 tap" will create an ethernet tunnel (tap device),
|
||||||
# "mode tun" will create an IP tunnel (tun device).
|
# "mode tun" will create an IP tunnel (tun device).
|
||||||
|
|
|
@ -79,8 +79,8 @@ start_instance() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
append_opts_list "$s" config config_peer_dir
|
append_opts_list "$s" config config_peer_dir bind method
|
||||||
append_opts "$s" syslog_level bind method mode interface mtu
|
append_opts "$s" syslog_level mode interface mtu
|
||||||
append_opts_bool "$s" forward
|
append_opts_bool "$s" forward
|
||||||
|
|
||||||
mkdir -p "$TMP_FASTD"
|
mkdir -p "$TMP_FASTD"
|
||||||
|
|
Loading…
Reference in New Issue