From acb644fd1545fcdcf0ba6a7358e7b10282dafad4 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 29 Mar 2024 20:20:20 +0100 Subject: oooooo --- src/i_events.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/i_events.go') diff --git a/src/i_events.go b/src/i_events.go index 1ba9e7a..1bdb370 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -319,21 +319,21 @@ func i_mkdir(data *HardData, ui *HardUI) { func i_set_protocol_defaults(data *HardData, in *HostNode) { switch in.Protocol { - case 0: + case PROTOCOL_SSH: in.Port = 22 in.Jump.Port = 22 data.ui.insert_sel_max = 11 - case 1: + case PROTOCOL_RDP: in.Port = 3389 in.Quality = 2 in.Width = 1600 in.Height = 1200 in.Dynamic = true data.ui.insert_sel_max = 4 - case 2: + case PROTOCOL_CMD: in.Shell = []string{"/bin/sh", "-c"} data.ui.insert_sel_max = 2 - case 3: + case PROTOCOL_OS: in.Stack.RegionName = "eu-west-0" in.Stack.IdentityAPI = "3" in.Stack.ImageAPI = "2" -- cgit v1.2.3