mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
re-use the string replace API for route add/del replacements.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user