mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 14:36:36 +00:00
fix: ensure autoreconnect setting matches documentation (#157)
Co-authored-by: bolkedebruin <bolkedebruin@users.noreply.github.com>
This commit is contained in:
@@ -49,7 +49,7 @@ type RdpSettings struct {
|
||||
EnableRdsAasAuth bool `rdp:"enablerdsaadauth" default:"false"`
|
||||
DisableConnectionSharing bool `rdp:"disableconnectionsharing" default:"false"`
|
||||
AlternateShell string `rdp:"alternate shell"`
|
||||
AutoReconnectionEnabled bool `rdp:"autoreconnectionenabled" default:"true"`
|
||||
AutoReconnectionEnabled bool `rdp:"autoreconnection enabled" default:"true"`
|
||||
BandwidthAutodetect bool `rdp:"bandwidthautodetect" default:"true"`
|
||||
NetworkAutodetect bool `rdp:"networkautodetect" default:"true"`
|
||||
Compression bool `rdp:"compression" default:"true"`
|
||||
|
||||
@@ -20,12 +20,11 @@ func TestRdpBuilder(t *testing.T) {
|
||||
if !strings.Contains(s, "gatewayhostname:s:"+GatewayHostName+CRLF) {
|
||||
t.Fatalf("%s does not contain `gatewayhostname:s:%s", s, GatewayHostName)
|
||||
}
|
||||
if strings.Contains(s, "autoreconnectionenabled") {
|
||||
t.Fatalf("autoreconnectionenabled is in %s, but it's default value", s)
|
||||
if strings.Contains(s, "autoreconnection enabled") {
|
||||
t.Fatalf("autoreconnection enabled is in %s, but it's default value", s)
|
||||
}
|
||||
if !strings.Contains(s, "smart sizing:i:1"+CRLF) {
|
||||
t.Fatalf("%s does not contain smart sizing:i:1", s)
|
||||
|
||||
}
|
||||
log.Printf("%s", builder.String())
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ BitmapPersistenceEnabled:i:0
|
||||
AudioRedirectionMode:i:2
|
||||
EnablePortRedirection:i:0
|
||||
EnableDriveRedirection:i:0
|
||||
AutoReconnectEnabled:i:1
|
||||
AutoReconnect Enabled:i:1
|
||||
EnableSCardRedirection:i:1
|
||||
EnablePrinterRedirection:i:0
|
||||
BBarEnabled:i:0
|
||||
|
||||
Reference in New Issue
Block a user