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
+6 -3
View File
@@ -1,26 +1,29 @@
--- a/include/registry.go
+++ b/include/registry.go
@@ -23,6 +23,7 @@
@@ -23,6 +23,8 @@
"github.com/sagernet/sing-box/protocol/group"
"github.com/sagernet/sing-box/protocol/http"
"github.com/sagernet/sing-box/protocol/mixed"
+ "github.com/sagernet/sing-box/protocol/minecraft" // OMV
+ "github.com/sagernet/sing-box/protocol/mysql" // OMV
"github.com/sagernet/sing-box/protocol/naive"
"github.com/sagernet/sing-box/protocol/redirect"
"github.com/sagernet/sing-box/protocol/shadowsocks"
@@ -62,6 +63,7 @@
@@ -62,6 +64,8 @@
shadowtls.RegisterInbound(registry)
vless.RegisterInbound(registry)
anytls.RegisterInbound(registry)
+ mysql.RegisterInbound(registry) // OMV
+ minecraft.RegisterInbound(registry) // OMV
registerQUICInbounds(registry)
registerStubForRemovedInbounds(registry)
@@ -90,6 +92,7 @@
@@ -90,6 +94,8 @@
shadowtls.RegisterOutbound(registry)
vless.RegisterOutbound(registry)
anytls.RegisterOutbound(registry)
+ mysql.RegisterOutbound(registry) // OMV
+ minecraft.RegisterOutbound(registry) // OMV
registerQUICOutbounds(registry)
registerStubForRemovedOutbounds(registry)