Files
omv-dijiang/works/patch/constant/proxy.go.patch
T
2026-04-25 09:04:39 +08:00

32 lines
704 B
Diff

--- a/constant/proxy.go
+++ b/constant/proxy.go
@@ -31,6 +31,9 @@
TypeCCM = "ccm"
TypeOCM = "ocm"
TypeOOMKiller = "oom-killer"
+ TypeMySQL = "mysql" // OMV
+ TypeMinecraft = "minecraft" // OMV
+ TypeObfHTTP = "obfhttp" // OMV
)
const (
@@ -88,6 +91,18 @@
return "AnyTLS"
case TypeTailscale:
return "Tailscale"
+ // OMV start: register mysql type name
+ case TypeMySQL:
+ return "MySQL"
+ // OMV end
+ // OMV start: register minecraft type name
+ case TypeMinecraft:
+ return "Minecraft"
+ // OMV end
+ // OMV start: register obfhttp type name
+ case TypeObfHTTP:
+ return "ObfHTTP"
+ // OMV end
case TypeSelector:
return "Selector"
case TypeURLTest: