mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-17 00:00:59 -04:00
Added pluto/whack output to 'ipsec leases'.
This commit is contained in:
parent
6bfa8e907c
commit
e82b5755be
@ -149,6 +149,15 @@ leases)
|
||||
op="$1"
|
||||
rc=7
|
||||
shift
|
||||
if [ -e $IPSEC_PLUTO_PID ]
|
||||
then
|
||||
case "$#" in
|
||||
0) $IPSEC_WHACK "--$op" ;;
|
||||
1) $IPSEC_WHACK "--$op" --name "$1" ;;
|
||||
*) $IPSEC_WHACK "--$op" --name "$1" --lease-addr "$2" ;;
|
||||
esac
|
||||
rc="$?"
|
||||
fi
|
||||
if [ -e $IPSEC_CHARON_PID ]
|
||||
then
|
||||
case "$#" in
|
||||
|
Loading…
x
Reference in New Issue
Block a user