Skip to content

Commit 831dcec

Browse files
committed
update register functions to match name
1 parent 4d47182 commit 831dcec

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

protocol/group/mutableselector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929

3030
const tracerName = "github.com/getlantern/sing-box-extensions/protocol/group"
3131

32-
func RegisterSelector(registry *outbound.Registry) {
32+
func RegisterMutableSelector(registry *outbound.Registry) {
3333
outbound.Register[option.MutableSelectorOutboundOptions](registry, constant.TypeMutableSelector, NewMutableSelector)
3434
}
3535

protocol/group/mutableurltest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/getlantern/sing-box-extensions/option"
3232
)
3333

34-
func RegisterURLTest(registry *outbound.Registry) {
34+
func RegisterMutableURLTest(registry *outbound.Registry) {
3535
outbound.Register[option.MutableURLTestOutboundOptions](registry, constant.TypeMutableURLTest, NewMutableURLTest)
3636
}
3737

protocol/register.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ var supportedProtocols = []string{
1919
"algeneva",
2020
"amnezia",
2121
"outline",
22-
"selector",
23-
"urltest",
2422

2523
// sing-box built-in protocols
2624
"http",
@@ -66,8 +64,8 @@ func registerOutbounds(registry *outbound.Registry) {
6664

6765
// utility outbounds
6866
group.RegisterFallback(registry)
69-
group.RegisterSelector(registry)
70-
group.RegisterURLTest(registry)
67+
group.RegisterMutableSelector(registry)
68+
group.RegisterMutableURLTest(registry)
7169
}
7270

7371
func registerEndpoints(registry *endpoint.Registry) {

0 commit comments

Comments
 (0)