mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
update the system proxy after modifying the mixed port
This commit is contained in:
parent
3fddabe5c2
commit
cf91a0932e
@ -1,10 +1,3 @@
|
|||||||
### New Features
|
|
||||||
|
|
||||||
- 支持删除 Webdav 备份文件
|
|
||||||
- Windows 绕过UAC弹窗
|
|
||||||
- Esc关闭窗口
|
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
- 修复拨号网络系统代理问题
|
- 修改混合端口后系统代理没有更新
|
||||||
- 尝试修复部分白屏问题
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import { useControledMihomoConfig } from '@renderer/hooks/use-controled-mihomo-c
|
|||||||
import { platform } from '@renderer/utils/init'
|
import { platform } from '@renderer/utils/init'
|
||||||
import { FaNetworkWired } from 'react-icons/fa'
|
import { FaNetworkWired } from 'react-icons/fa'
|
||||||
import { IoMdCloudDownload } from 'react-icons/io'
|
import { IoMdCloudDownload } from 'react-icons/io'
|
||||||
import { mihomoUpgrade, restartCore } from '@renderer/utils/ipc'
|
import { mihomoUpgrade, restartCore, triggerSysProxy } from '@renderer/utils/ipc'
|
||||||
import React, { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
import InterfaceModal from '@renderer/components/mihomo/interface-modal'
|
import InterfaceModal from '@renderer/components/mihomo/interface-modal'
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ const CoreMap = {
|
|||||||
|
|
||||||
const Mihomo: React.FC = () => {
|
const Mihomo: React.FC = () => {
|
||||||
const { appConfig, patchAppConfig } = useAppConfig()
|
const { appConfig, patchAppConfig } = useAppConfig()
|
||||||
const { core = 'mihomo', maxLogDays = 7 } = appConfig || {}
|
const { core = 'mihomo', maxLogDays = 7, sysProxy } = appConfig || {}
|
||||||
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig()
|
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig()
|
||||||
const {
|
const {
|
||||||
ipv6,
|
ipv6,
|
||||||
@ -114,8 +114,11 @@ const Mihomo: React.FC = () => {
|
|||||||
size="sm"
|
size="sm"
|
||||||
color="primary"
|
color="primary"
|
||||||
className="mr-2"
|
className="mr-2"
|
||||||
onPress={() => {
|
onPress={async () => {
|
||||||
onChangeNeedRestart({ 'mixed-port': mixedPortInput })
|
await onChangeNeedRestart({ 'mixed-port': mixedPortInput })
|
||||||
|
if (sysProxy?.enable) {
|
||||||
|
triggerSysProxy(true)
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
确认
|
确认
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user