re-use the string replace API for route add/del replacements.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-23 11:32:03 +02:00
parent 57d848d228
commit d51a7cb7e7
5 changed files with 65 additions and 55 deletions

View File

@@ -288,14 +288,14 @@ route = 192.168.5.0/255.255.255.0
# option is only functional on plain authentication.
#auto-select-group = true
# The system command to use to setup a route. %R will be replaced with the
# route/mask and %D with the (tun) device.
# The system command to use to setup a route. %{R} will be replaced with the
# route/mask and %{D} with the (tun) device.
#
# The following example is from linux systems. %R should be something
# The following example is from linux systems. %{R} should be something
# like 192.168.2.0/24
#route-add-cmd = "ip route add %R dev %D"
#route-del-cmd = "ip route delete %R dev %D"
#route-add-cmd = "ip route add %{R} dev %{D}"
#route-del-cmd = "ip route delete %{R} dev %{D}"
# This option allows to forward a proxy. The special strings '%{U}'
# and '%{G}', if present will be replaced by the username and group name.