Undocumented conditions/scripting?
Posted: Wed Jun 08, 2022 8:08 am
The man page shows for the option --server the following documentation:
So does the config support if statements or scripting (or is this just some pseudo code for the explanation)? Where can I find the documentation for this?
Code: Select all
For example, --server 10.8.0.0 255.255.255.0 expands as follows:
mode server
tls-server
push "topology [topology]"
if dev tun AND (topology == net30 OR topology == p2p):
ifconfig 10.8.0.1 10.8.0.2
if !nopool:
ifconfig-pool 10.8.0.4 10.8.0.251