mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 22:46:37 +00:00
Fix no username issues
This commit is contained in:
@@ -94,7 +94,7 @@ type ClientConfig struct {
|
||||
// kept for backwards compatibility
|
||||
UsernameTemplate string `koanf:"usernametemplate"`
|
||||
SplitUserDomain bool `koanf:"splituserdomain"`
|
||||
NoUsername string `koanf:"nousername"`
|
||||
NoUsername bool `koanf:"nousername"`
|
||||
}
|
||||
|
||||
func ToCamel(s string) string {
|
||||
|
||||
@@ -37,7 +37,7 @@ type Config struct {
|
||||
type RdpOpts struct {
|
||||
UsernameTemplate string
|
||||
SplitUserDomain bool
|
||||
NoUsername bool
|
||||
NoUsername bool
|
||||
}
|
||||
|
||||
type Handler struct {
|
||||
@@ -211,7 +211,7 @@ func (h *Handler) HandleDownload(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
if !NoUsername {
|
||||
if !h.rdpOpts.NoUsername {
|
||||
d.Settings.Username = render
|
||||
if domain != "" {
|
||||
d.Settings.Domain = domain
|
||||
|
||||
Reference in New Issue
Block a user