File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
frontend/src/views/setting/panel/proxy Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ func (u *DockerService) UpdateConf(req dto.SettingUpdate) error {
206206 }
207207 daemonMap ["proxies" ] = proxies
208208 }
209- case "socks5-proxy" :
209+ case "socks5-proxy" , "close-proxy" :
210210 delete (daemonMap , "proxies" )
211211 if len (req .Value ) > 0 {
212212 proxies := map [string ]interface {}{
Original file line number Diff line number Diff line change @@ -195,6 +195,9 @@ const submitChangePassword = async (formEl: FormInstance | undefined) => {
195195 loading .value = false ;
196196 emit (' search' );
197197 passwordVisible .value = false ;
198+ if (isClose ) {
199+ await updateDaemonJson (` ${form .proxyType }-proxy ` , ' ' );
200+ }
198201 MsgSuccess (i18n .global .t (' commons.msg.operationSuccess' ));
199202 })
200203 .catch (() => {
You can’t perform that action at this time.
0 commit comments