new: add warp option (experimental)
This commit is contained in:
@@ -20,7 +20,7 @@ enum ProxyType {
|
||||
|
||||
selector("Selector"),
|
||||
urltest("URLTest"),
|
||||
|
||||
warp("Warp")
|
||||
unknown("Unknown");
|
||||
|
||||
const ProxyType(this.label);
|
||||
|
||||
@@ -57,7 +57,8 @@ abstract class LinkParser {
|
||||
'hy' || 'hysteria' => fragment ?? ProxyType.hysteria.label,
|
||||
'ssh' => fragment ?? ProxyType.ssh.label,
|
||||
'wg' => fragment ?? ProxyType.wireguard.label,
|
||||
_ => null,
|
||||
'warp'=>fragment ?? ProxyType.warp.label,
|
||||
_ => ProxyType.unknown.label,
|
||||
};
|
||||
if (name != null) {
|
||||
return (content: content, name: name);
|
||||
|
||||
Reference in New Issue
Block a user