Skip to content

Commit

Permalink
Merge branch 'master' into atburke/ec2-concurrent-write
Browse files Browse the repository at this point in the history
  • Loading branch information
atburke authored Jun 1, 2022
2 parents 04b319c + 4a056b9 commit 276e331
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
7 changes: 0 additions & 7 deletions lib/config/fileconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -1019,11 +1019,6 @@ func (ssh *SSH) X11ServerConfig() (*x11.ServerConfig, error) {
}
}

// DELETE IN 10.0.0 (Joerger): yaml typo, use MaxDisplay.
if ssh.X11.MaxDisplays != nil && ssh.X11.MaxDisplay == nil {
ssh.X11.MaxDisplay = ssh.X11.MaxDisplays
}

cfg.MaxDisplay = cfg.DisplayOffset + x11.DefaultMaxDisplays
if ssh.X11.MaxDisplay != nil {
cfg.MaxDisplay = int(*ssh.X11.MaxDisplay)
Expand Down Expand Up @@ -1142,8 +1137,6 @@ type X11 struct {
// MaxDisplay tells the server what X11 display number to stop at when
// searching for an open X11 unix socket for XServer proxies.
MaxDisplay *uint `yaml:"max_display,omitempty"`
// DELETE IN 10.0.0 (Joerger): yaml typo, use MaxDisplay.
MaxDisplays *uint `yaml:"max_displays,omitempty"`
}

// Databases represents the database proxy service configuration.
Expand Down
14 changes: 0 additions & 14 deletions lib/config/fileconf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,20 +544,6 @@ func TestX11Config(t *testing.T) {
DisplayOffset: x11.DefaultDisplayOffset,
MaxDisplay: 100,
},
}, {
// DELETE IN 10.0.0 (Joerger): yaml typo, use max_display.
desc: "max displays set",
mutate: func(cfg cfgMap) {
cfg["ssh_service"].(cfgMap)["x11"] = cfgMap{
"enabled": "yes",
"max_displays": 100,
}
},
expectX11Config: &x11.ServerConfig{
Enabled: true,
DisplayOffset: x11.DefaultDisplayOffset,
MaxDisplay: 100,
},
}, {
desc: "max display value capped",
mutate: func(cfg cfgMap) {
Expand Down

0 comments on commit 276e331

Please sign in to comment.