mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use env var provided by openvpn to determine if it's tun or tap, it should fix #3475
This commit is contained in:
parent
26ea40b7f1
commit
070dad6c8d
@ -3,9 +3,7 @@
|
||||
# let the configuration system know that the ip has changed.
|
||||
#/usr/local/sbin/pfSctl -c "interface newip $interface"
|
||||
|
||||
|
||||
ifindex="${1##?????}"
|
||||
if [ -e /dev/tun$ifindex ]; then
|
||||
if [ "${dev_type}" = "tun" ]; then
|
||||
if [ "" != "$route_vpn_gateway" ]; then
|
||||
/bin/echo $route_vpn_gateway > /tmp/$1_router
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user