Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Clash Verge
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Clash Verge
Commits
35de2334
There was an error fetching the commit references. Please try again later.
Commit
35de2334
authored
2 years ago
by
GyDi
Browse files
Options
Downloads
Patches
Plain Diff
fix: add valid clash field
parent
5564c966
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/services/enhance.ts
+26
-2
26 additions, 2 deletions
src/services/enhance.ts
src/services/types.d.ts
+12
-0
12 additions, 0 deletions
src/services/types.d.ts
with
38 additions
and
2 deletions
src/services/enhance.ts
+
26
−
2
View file @
35de2334
...
...
@@ -2,7 +2,20 @@ import { emit, listen, Event } from "@tauri-apps/api/event";
import
{
appWindow
}
from
"
@tauri-apps/api/window
"
;
import
ignoreCase
from
"
@/utils/ignore-case
"
;
const
DEFAULT_FIELDS
=
[
export
const
HANDLE_FIELDS
=
[
"
port
"
,
"
socks-port
"
,
"
redir-port
"
,
"
tproxy-port
"
,
"
mixed-port
"
,
"
allow-lan
"
,
"
mode
"
,
"
log-level
"
,
"
ipv6
"
,
"
external-controller
"
,
];
export
const
DEFAULT_FIELDS
=
[
"
rules
"
,
"
proxies
"
,
"
proxy-groups
"
,
...
...
@@ -10,15 +23,26 @@ const DEFAULT_FIELDS = [
"
rule-providers
"
,
]
as const
;
const
USE_FLAG_FIELDS
=
[
export
const
USE_FLAG_FIELDS
=
[
"
tun
"
,
"
dns
"
,
"
ebpf
"
,
"
hosts
"
,
"
script
"
,
"
profile
"
,
"
payload
"
,
"
auto-redir
"
,
"
experimental
"
,
"
interface-name
"
,
"
routing-mark
"
,
"
tproxy-port
"
,
"
iptables
"
,
"
external-ui
"
,
"
bind-address
"
,
"
authentication
"
,
"
sniffer
"
,
// meta
"
geodata-mode
"
,
// meta
"
tcp-concurrent
"
,
// meta
]
as const
;
/**
...
...
This diff is collapsed.
Click to expand it.
src/services/types.d.ts
+
12
−
0
View file @
35de2334
...
...
@@ -178,6 +178,18 @@ declare namespace CmdType {
"
append-proxies
"
?:
any
[];
"
prepend-proxy-groups
"
?:
any
[];
"
append-proxy-groups
"
?:
any
[];
// fix
ebpf
?:
any
;
experimental
?:
any
;
iptables
?:
any
;
sniffer
?:
any
;
authentication
?:
any
;
"
bind-address
"
?:
any
;
"
external-ui
"
?:
any
;
"
auto-redir
"
?:
any
;
"
tproxy-port
"
?:
any
;
"
geodata-mode
"
?:
any
;
"
tcp-concurrent
"
?:
any
;
}
// partial of the clash config
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment