DefGuard / defguard

The only _real_ 2FA MFA WireGuard Enterprise VPN with build-in SSO, hardware keys management and more!
https://defguard.net
Other
1.11k stars 35 forks source link

Downloading a wireguard conf on mobile makes the file end with .txt instead of .conf #600

Closed Sleuth56 closed 1 month ago

Sleuth56 commented 6 months ago

Describe the bug When you create a new wireguard VPN device on an android device using either Chrome or Firefox and download the wireguard conf file it ends with .txt instead of .conf like it does when downloaded on a desktop operating system. This causes issues with the wireguard android app which wants the file to end with .conf

To Reproduce Steps to reproduce the behavior:

  1. Login to your defguard account on an android device
  2. Create a new device
  3. Select it to be a Wireguard client
  4. Get to the page with the QR Code
  5. Download the wireguard conf

Expected behavior For the file to end with .conf like it does when downloaded on a desktop PC OS.

Version information

t-aleksander commented 4 months ago

This seems to be an issue with the browser itself (1, 2, 3). A possible workaround for it would be to change the MIME type of the config file from text/plain to something like application/octet-stream (which may make it impossible to open with some built-in text viewers) or some custom type, like text/conf.