Skip to content

Commit

Permalink
fix: @mihomo-party/sysproxy optional deps not found
Browse files Browse the repository at this point in the history
  • Loading branch information
starknt committed Nov 26, 2024
1 parent a6fe9a5 commit 40c3d4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/shell/scripts/set-system-proxy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const request = require('request')
const Registry = require('winreg')
const log = require('../../../utils/util.log')
const Shell = require('../../shell')
const sysproxy = require('@mihomo-party/sysproxy')

const execute = Shell.execute

Expand Down Expand Up @@ -183,6 +182,8 @@ function getProxyExcludeIpStr (split) {

const executor = {
async windows (exec, params = {}) {
const sysproxy = require('@mihomo-party/sysproxy')

const { ip, port, setEnv } = params
if (ip != null) { // 设置代理
// 延迟加载config
Expand Down

0 comments on commit 40c3d4c

Please sign in to comment.