bolkedebruin / rdpgw

Remote Desktop Gateway in Go for deploying on Linux/BSD/Kubernetes
Apache License 2.0
693 stars 117 forks source link

Question regarding the name of the generated RDP Configuration #115

Open pierre42100 opened 3 weeks ago

pierre42100 commented 3 weeks ago

Hello, I have question about the name of the generated RDP configurations. In the file cmd/rdpgw/web/web.go, the name of the generated file is fully random:

fn := hex.EncodeToString(seed) + ".rdp"
w.Header().Set("Content-Disposition", "attachment; filename="+fn)

Would it be possible to make it customizable, to integrate inside this generated name the name of the target host?

Thank you for your help,