add minecraft protocol

This commit is contained in:
InkerBot
2026-03-05 15:48:45 +08:00
parent daba0d704e
commit 66ded37577
16 changed files with 2447 additions and 8 deletions
+7 -2
View File
@@ -1,20 +1,25 @@
--- a/constant/proxy.go
+++ b/constant/proxy.go
@@ -31,6 +31,7 @@
@@ -31,6 +31,8 @@
TypeCCM = "ccm"
TypeOCM = "ocm"
TypeOOMKiller = "oom-killer"
+ TypeMySQL = "mysql" // OMV
+ TypeMinecraft = "minecraft" // OMV
)
const (
@@ -88,6 +89,10 @@
@@ -88,6 +90,14 @@
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
case TypeSelector:
return "Selector"