Skip to content

Commit 2a13252

Browse files
committed
feat: add new sniffer options for Stun, Bittorrent, Dtls, and Ntp
1 parent e4d687c commit 2a13252

File tree

6 files changed

+31
-7
lines changed

6 files changed

+31
-7
lines changed

frontend/src/constant/kernel.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,13 @@ export const RuleSnifferOptions = [
234234
{ label: 'kernel.route.rules.sniffer.http', value: Sniffer.Http },
235235
{ label: 'kernel.route.rules.sniffer.tls', value: Sniffer.Tls },
236236
{ label: 'kernel.route.rules.sniffer.quic', value: Sniffer.Quic },
237+
{ label: 'kernel.route.rules.sniffer.stun', value: Sniffer.Stun },
237238
{ label: 'kernel.route.rules.sniffer.dns', value: Sniffer.Dns },
239+
{ label: 'kernel.route.rules.sniffer.bittorrent', value: Sniffer.Bittorrent },
240+
{ label: 'kernel.route.rules.sniffer.dtls', value: Sniffer.Dtls },
238241
{ label: 'kernel.route.rules.sniffer.ssh', value: Sniffer.Ssh },
239242
{ label: 'kernel.route.rules.sniffer.rdp', value: Sniffer.Rdp },
243+
{ label: 'kernel.route.rules.sniffer.ntp', value: Sniffer.Ntp },
240244
]
241245

242246
export const EmptyRuleSet = {

frontend/src/enums/kernel.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ export enum Sniffer {
109109
Http = 'http',
110110
Tls = 'tls',
111111
Quic = 'quic',
112+
Stun = 'stun',
112113
Dns = 'dns',
114+
Bittorrent = 'bittorrent',
115+
Dtls = 'dtls',
113116
Ssh = 'ssh',
114117
Rdp = 'rdp',
118+
Ntp = 'ntp',
115119
}

frontend/src/lang/locale/en.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,13 @@ export default {
194194
http: 'http',
195195
tls: 'tls',
196196
quic: 'quic',
197+
stun: 'stun',
197198
dns: 'dns',
199+
bittorrent: 'bittorrent',
200+
dtls: 'dtls',
198201
ssh: 'ssh',
199202
rdp: 'rdp',
203+
ntp: 'ntp',
200204
},
201205
server: 'DNS Server',
202206
payload: 'Payload',

frontend/src/lang/locale/fa.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,16 @@ export default {
191191
routeOptions: 'گزینه‌های مسیر',
192192
sniffer: {
193193
name: 'استشمام‌کننده',
194-
http: 'HTTP',
195-
tls: 'TLS',
196-
quic: 'QUIC',
197-
dns: 'DNS',
198-
ssh: 'SSH',
199-
rdp: 'RDP',
194+
http: 'http',
195+
tls: 'tls',
196+
quic: 'quic',
197+
stun: 'stun',
198+
dns: 'dns',
199+
bittorrent: 'bittorrent',
200+
dtls: 'dtls',
201+
ssh: 'ssh',
202+
rdp: 'rdp',
203+
ntp: 'ntp',
200204
},
201205
server: 'سرور DNS',
202206
payload: 'داده',

frontend/src/lang/locale/ru.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,13 @@ export default {
195195
http: 'http',
196196
tls: 'tls',
197197
quic: 'quic',
198+
stun: 'stun',
198199
dns: 'dns',
200+
bittorrent: 'bittorrent',
201+
dtls: 'dtls',
199202
ssh: 'ssh',
200203
rdp: 'rdp',
204+
ntp: 'ntp',
201205
},
202206
server: 'DNS сервер',
203207
payload: 'Полезная нагрузка',

frontend/src/lang/locale/zh.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,17 @@ export default {
190190
outbound: '出站标签',
191191
routeOptions: '路由选项',
192192
sniffer: {
193-
name: '启用的探测器',
193+
name: '探测器',
194194
http: 'http',
195195
tls: 'tls',
196196
quic: 'quic',
197+
stun: 'stun',
197198
dns: 'dns',
199+
bittorrent: 'bittorrent',
200+
dtls: 'dtls',
198201
ssh: 'ssh',
199202
rdp: 'rdp',
203+
ntp: 'ntp',
200204
},
201205
server: 'DNS服务器',
202206
payload: '载荷',

0 commit comments

Comments
 (0)