From 6d250bfa98928aa3d3383645e528c0a01932df96 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sun, 30 Jan 2022 19:22:43 +0100 Subject: [PATCH] Add warnings about disclosing IP addresses. --- static/galene.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/galene.js b/static/galene.js index 3d9341f..28945a4 100644 --- a/static/galene.js +++ b/static/galene.js @@ -2252,6 +2252,10 @@ function fileTransferBox(up, id, fileid, f) { } let status = document.createElement('div'); status.id = 'status-' + fullid; + if(!up) { + status.textContent = + '(Choosing "Accept" will disclose your IP address.)'; + } let div = document.createElement('div'); div.id = 'file-' + fullid; div.appendChild(p); @@ -3212,7 +3216,7 @@ commands.unraise = { commands.sendfile = { parameters: 'user', - description: 'send file', + description: 'send a file (this will disclose your IP address)', f: (c, r) => { let p = parseCommand(r); if(!p[0])