@@ -68,12 +68,7 @@ namespace winrt::YtFlowApp::implementation
68
68
69
69
std::string Sip002Decoder::DecodeName (ParsedUri const &uri)
70
70
{
71
- std::string proxyName = UriUnescape (std::string (uri.fragment ));
72
- if (proxyName.empty ())
73
- {
74
- proxyName = " New Shadowsocks Proxy" ;
75
- }
76
- return proxyName;
71
+ return UriUnescape (std::string (uri.fragment ));
77
72
}
78
73
PluginDecodeResult Sip002Decoder::DecodeProtocol (ParsedUri const &uri, ProxyPlugin &plugin,
79
74
std::string_view tcpNext, std::string_view udpNext) const
@@ -281,12 +276,7 @@ namespace winrt::YtFlowApp::implementation
281
276
282
277
std::string TrojanDecoder::DecodeName (ParsedUri const &uri)
283
278
{
284
- std::string proxyName = UriUnescape (std::string (uri.fragment ));
285
- if (proxyName.empty ())
286
- {
287
- proxyName = " New Trojan Proxy" ;
288
- }
289
- return proxyName;
279
+ return UriUnescape (std::string (uri.fragment ));
290
280
}
291
281
PluginDecodeResult TrojanDecoder::DecodeProtocol (ParsedUri const &uri, ProxyPlugin &plugin,
292
282
std::string_view tcpNext, std::string_view) const
@@ -369,12 +359,7 @@ namespace winrt::YtFlowApp::implementation
369
359
{
370
360
return remarks.value ().get ();
371
361
}
372
- std::string proxyName = UriUnescape (std::string (uri.fragment ));
373
- if (proxyName.empty ())
374
- {
375
- proxyName = " New SOCKS5 Proxy" ;
376
- }
377
- return proxyName;
362
+ return UriUnescape (std::string (uri.fragment ));
378
363
}
379
364
PluginDecodeResult Socks5Decoder::DecodeProtocol (ParsedUri const &uri, ProxyPlugin &plugin,
380
365
std::string_view tcpNext, std::string_view udpNext) const
@@ -422,12 +407,7 @@ namespace winrt::YtFlowApp::implementation
422
407
}
423
408
std::string HttpDecoder::DecodeName (ParsedUri const &uri)
424
409
{
425
- std::string proxyName = UriUnescape (std::string (uri.fragment ));
426
- if (proxyName.empty ())
427
- {
428
- proxyName = " New HTTP Proxy" ;
429
- }
430
- return proxyName;
410
+ return UriUnescape (std::string (uri.fragment ));
431
411
}
432
412
PluginDecodeResult HttpDecoder::DecodeProtocol (ParsedUri const &uri, ProxyPlugin &plugin, std::string_view tcpNext,
433
413
std::string_view) const
0 commit comments