mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 10:18:51 +00:00
Use hostname for download filename
This commit is contained in:
@@ -16,7 +16,7 @@ defmodule FzHttpWeb.DeviceController do
|
||||
|
||||
def download_config(conn, %{"id" => device_id}) do
|
||||
device = Devices.get_device!(device_id)
|
||||
filename = "#{sanitize_filename(device.name)}.conf"
|
||||
filename = "#{sanitize_filename(FzHttpWeb.Endpoint.host())}.conf"
|
||||
content_type = "text/plain"
|
||||
|
||||
conn
|
||||
|
||||
Reference in New Issue
Block a user