This commit is contained in:
2023-04-27 08:07:56 -05:00
parent fe70c95c83
commit 535477f77d
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='3.8.123-04232023'
VERS='3.8.124-04232023'
MMFOLDER="/opt/idssys/mediamanager"
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)

View File

@@ -153,7 +153,7 @@ MMSTART(){
fi
vpnuptime=$(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vpninfo))
if [ ${vpnuptime} -ge 200 ]; then
if [ ${vpnuptime} -ge 86400 ]; then
echo "$(date) - 24hr session limit reached, restarting vpn & services" >> $logfile
echo -en "${idsCL[LightCyan]}24hr session limit reached, restarting vpn & services ."
[ -f ${MMFOLDER}/mm.noservices ] && rv="vpn" || rv=""