Update mm-scripts.sh
This commit is contained in:
@@ -83,7 +83,7 @@ AllowedIPs = 0.0.0.0/0
|
||||
Endpoint = ${vpnaddress}:${vpnport}
|
||||
PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
||||
|
||||
rm -f ${MMFOLDER}/vpninfo.*
|
||||
rm -f ${MMFOLDER}/vpninfo
|
||||
echo -e "$publickey" >> ${MMFOLDER}/vpninfo.publickey
|
||||
echo -e "$vpnaddress" >> ${MMFOLDER}/vpninfo.address
|
||||
echo -e "${idsCL[Green]} done${idsCL[Default]}"
|
||||
@@ -383,7 +383,7 @@ MMSTOP(){
|
||||
[ "$(/sbin/ip route show | grep default | cut -d' ' -f 3)" != "10.10.0.1" ] && /bin/ip route add default via 10.10.0.1 && ip route del $(cat ${MMFOLDER}/vpninfo.address)
|
||||
[ $VERBOSE = true ] && echo "$(date) - Added default route back in" >> $logfile
|
||||
|
||||
rm -f ${MMFOLDER}/vpninfo.*
|
||||
rm -f ${MMFOLDER}/vpninfo*
|
||||
rm -f ${MMFOLDER}/noservices*
|
||||
rm -f ${MMFOLDER}/mm.stop.checking
|
||||
|
||||
|
||||
Reference in New Issue
Block a user