From d674fa9ddc1e1ff9281f7906cb518b05820683f9 Mon Sep 17 00:00:00 2001 From: Nik Afiq Date: Tue, 12 May 2026 23:06:33 +0900 Subject: [PATCH] feat: enhance IP reporter response with HTML formatting and styling --- manifests/media/qbittorrent.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/manifests/media/qbittorrent.yaml b/manifests/media/qbittorrent.yaml index 0b83187..abc9e78 100644 --- a/manifests/media/qbittorrent.yaml +++ b/manifests/media/qbittorrent.yaml @@ -103,10 +103,17 @@ spec: ip = urllib.request.urlopen('https://ipinfo.io/ip').read().decode().strip() except Exception as e: ip = f'error: {e}' - body = ip.encode() + body = f''' + + + 🌐 VPN IP: {ip} + + '''.encode() self.send_response(200) - self.send_header('Content-Type', 'text/plain') + self.send_header('Content-Type', 'text/html') self.send_header('Content-Length', len(body)) + self.send_header('X-Frame-Options', 'SAMEORIGIN') self.end_headers() self.wfile.write(body) def log_message(self, *a): pass