mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix ovpn-linkup so it writes out the proper gateway IP in all cases.
(For some reason -n wasn't working properly, plus $5 is the right parameter for the remote IP here)
This commit is contained in:
parent
06bfdd53f6
commit
c880d03296
@ -2,10 +2,10 @@
|
||||
|
||||
# let the configuration system know that the ip has changed.
|
||||
#/usr/local/sbin/pfSctl -c "interface newip $interface"
|
||||
if [ -n $route_vpn_gateway ]; then
|
||||
if [ "" != "$route_vpn_gateway" ]; then
|
||||
/bin/echo $route_vpn_gateway > /tmp/$1_router
|
||||
else
|
||||
/bin/echo $4 > /tmp/$1_router
|
||||
/bin/echo $5 > /tmp/$1_router
|
||||
fi
|
||||
/usr/bin/touch /tmp/$1up
|
||||
# reload filter
|
||||
|
||||
Loading…
Reference in New Issue
Block a user