feat: trocar configurações de certificado
Agora a emissão e renovação de certificado é automática.
This commit is contained in:
+11
-2
@@ -77,6 +77,15 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
case StepRunWireguard:
|
||||
return m.updateRunWireguardDocker(msg)
|
||||
|
||||
case StepAppConfig:
|
||||
done, cmd := m.appForm.Update(msg)
|
||||
|
||||
if done {
|
||||
m.configValues.Application = m.appForm.Values()
|
||||
m.currentStep = StepServerConfig
|
||||
}
|
||||
|
||||
return m, cmd
|
||||
case StepServerConfig:
|
||||
done, cmd := m.serverForm.Update(msg)
|
||||
|
||||
@@ -192,7 +201,7 @@ func (m Model) updateIPQuestion(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
case "enter":
|
||||
// Yes
|
||||
if m.cursor == 0 {
|
||||
m.currentStep = StepServerConfig
|
||||
m.currentStep = StepAppConfig
|
||||
return m, nil
|
||||
}
|
||||
|
||||
@@ -262,7 +271,7 @@ func (m Model) updateRunWireguardDocker(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
if m.finishedDockerRun && m.dockerRunError != nil {
|
||||
return m, tea.Quit
|
||||
} else if m.finishedDockerRun && m.dockerRunError == nil {
|
||||
m.currentStep = StepServerConfig
|
||||
m.currentStep = StepAppConfig
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user