MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / SetDefaultIsConn

Method SetDefaultIsConn

agent/app/service/setting.go:277–284  ·  view source on GitHub ↗
(req dto.SSHDefaultConn)

Source from the content-addressed store, hash-verified

275}
276
277func (u *SettingService) SetDefaultIsConn(req dto.SSHDefaultConn) error {
278 if req.DefaultConn == constant.StatusDisable && req.WithReset {
279 if err := settingRepo.Update("LocalSSHConn", ""); err != nil {
280 return err
281 }
282 }
283 return settingRepo.Update("LocalSSHConnShow", req.DefaultConn)
284}
285
286func (u *SettingService) GetSystemProxy() (*dto.SystemProxy, error) {
287 systemProxy := dto.SystemProxy{}

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected