Skip to content

Commit

Permalink
fix: 解决编辑ssh端口同步到终端本地服务器问题 (#4043) (#4093)
Browse files Browse the repository at this point in the history
  • Loading branch information
igophper authored Mar 7, 2024
1 parent 62b1bb3 commit cf4fcaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/app/service/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ func (u *SSHService) Update(req dto.SSHUpdate) error {
},
}
if err := NewIFirewallService().UpdatePortRule(ruleItem); err != nil {
global.LOG.Errorf("reset firewall rules %s -> %s failed, err: %v", req.OldValue, req.OldValue, err)
global.LOG.Errorf("reset firewall rules %s -> %s failed, err: %v", req.OldValue, req.NewValue, err)
}

if err = NewIHostService().Update(1, map[string]interface{}{"port": req.NewValue}); err != nil {
global.LOG.Errorf("reset host port %s -> %s failed, err: %v", req.OldValue, req.NewValue, err)
}
}

Expand Down

0 comments on commit cf4fcaa

Please sign in to comment.