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