Răsfoiți Sursa

auto update script executed

Toby Chui 1 an în urmă
părinte
comite
04cd850f29
1 a modificat fișierele cu 6 adăugiri și 2 ștergeri
  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