WebClient: add a ping URL

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2023-11-06 19:58:39 +01:00
parent 789d61f170
commit 6295be786f
6 changed files with 35 additions and 5 deletions

View File

@@ -105,8 +105,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
var cmView;
function keepAlive() {
axios.get('{{.ProfileURL}}',{
timeout: 15000
axios.get('{{.PingURL}}',{
timeout: 15000,
responseType: 'text'
}).catch(function (error){});
}