- Fix viprvpn logfile.

This commit is contained in:
2025-06-30 11:14:11 +02:00
parent 03906c3d46
commit 9939e0596d
2 changed files with 11 additions and 11 deletions

View File

@@ -45,19 +45,19 @@ network_dst_tab_get "${dst_id}"
echo -n >>${log_file} "$(date): Down: [${Dev}] Local_MTU: [${Local_MTU}] Remote_MTU: [${Remote_MTU}] Local_Address: [${Local_Address}] Local_Netmask: [${Local_Netmask}] Target_Table: ${target_table} Phase: ${Phase}"
echo -n >>${LOG_FILE} "$(date): Down: [${Dev}] Local_MTU: [${Local_MTU}] Remote_MTU: [${Remote_MTU}] Local_Address: [${Local_Address}] Local_Netmask: [${Local_Netmask}] Target_Table: ${target_table} Phase: ${Phase}"
if [[ "${dst_table}" != "" ]]
then
echo >>${log_file} " Status: [OK]"
echo >>${LOG_FILE} " Status: [OK]"
remote_address=0.0.0.0
echo >>${log_file} "$(date): Down: ${Dev}: set ${remote_address} to vpn${id}.vpn.rx3"
echo >>${LOG_FILE} "$(date): Down: ${Dev}: set ${remote_address} to vpn${id}.vpn.rx3"
${DEBUG} ip_host_update vpn${id} vpn.rx3 ${remote_address} 60
else
echo >>${log_file} " Status: [ERROR]!"
echo >>${LOG_FILE} " Status: [ERROR]!"
fi
echo >>${log_file} "$(date): Down: ${Dev}: Done"
echo >>${LOG_FILE} "$(date): Down: ${Dev}: Done"