mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-19 00:01:57 -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"
|
op="$1"
|
||||||
rc=7
|
rc=7
|
||||||
shift
|
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 ]
|
if [ -e $IPSEC_CHARON_PID ]
|
||||||
then
|
then
|
||||||
case "$#" in
|
case "$#" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user