properly use new ServerType field

This commit is contained in:
Drew Weymouth
2023-11-14 09:05:02 -08:00
parent 8aed1e5234
commit 3f8ff7cd1d
+3
View File
@@ -222,6 +222,7 @@ func (m *Controller) PromptForFirstServer() {
pop.Hide() pop.Hide()
m.doModalClosed() m.doModalClosed()
conn := backend.ServerConnection{ conn := backend.ServerConnection{
ServerType: d.ServerType,
Hostname: d.Host, Hostname: d.Host,
AltHostname: d.AltHost, AltHostname: d.AltHost,
Username: d.Username, Username: d.Username,
@@ -398,6 +399,7 @@ func (m *Controller) PromptForLoginAndConnect() {
// connection is good // connection is good
newPop.Hide() newPop.Hide()
conn := backend.ServerConnection{ conn := backend.ServerConnection{
ServerType: newD.ServerType,
Hostname: newD.Host, Hostname: newD.Host,
AltHostname: newD.AltHost, AltHostname: newD.AltHost,
Username: newD.Username, Username: newD.Username,
@@ -539,6 +541,7 @@ func (c *Controller) tryConnectToServer(server *backend.ServerConfig, password s
func (c *Controller) testConnectionAndUpdateDialogText(dlg *dialogs.AddEditServerDialog) bool { func (c *Controller) testConnectionAndUpdateDialogText(dlg *dialogs.AddEditServerDialog) bool {
dlg.SetInfoText("Testing connection...") dlg.SetInfoText("Testing connection...")
conn := backend.ServerConnection{ conn := backend.ServerConnection{
ServerType: dlg.ServerType,
Hostname: dlg.Host, Hostname: dlg.Host,
AltHostname: dlg.AltHost, AltHostname: dlg.AltHost,
Username: dlg.Username, Username: dlg.Username,