fix: 解决编辑ssh端口同步到终端本地服务器问题 (#4043) (#4093)

pull/4109/head
igophper 9 months ago committed by GitHub
parent 62b1bb3191
commit cf4fcaa07f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)
}
}

Loading…
Cancel
Save