Browse Source

auto update script executed

Toby Chui 1 năm trước cách đây
mục cha
commit
04cd850f29
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      mod/sshprox/sshprox.go

+ 6 - 2
mod/sshprox/sshprox.go

@@ -100,10 +100,14 @@ func (m *Manager) NewSSHProxy(binaryRoot string) (*Instance, error) {
 		return nil, err
 	}
 
-	return &Instance{
+	thisInstance := Instance{
 		UUID:     uuid.New().String(),
 		ExecPath: realpath,
-	}, nil
+	}
+
+	m.Instances = append(m.Instances, &thisInstance)
+
+	return &thisInstance, nil
 }
 
 //Create a new Connection to target address