mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-26 12:05:35 -05:00
massive refactoring for kcp
This commit is contained in:
@@ -13,7 +13,7 @@ func randomString() string {
|
||||
return fmt.Sprintf("-%d", count)
|
||||
}
|
||||
|
||||
func RegisterInboundConnectionHandlerCreator(prefix string, creator internal.InboundHandlerCreator) (string, error) {
|
||||
func RegisterInboundConnectionHandlerCreator(prefix string, creator internal.InboundHandlerFactory) (string, error) {
|
||||
for {
|
||||
name := prefix + randomString()
|
||||
err := internal.RegisterInboundHandlerCreator(name, creator)
|
||||
@@ -23,7 +23,7 @@ func RegisterInboundConnectionHandlerCreator(prefix string, creator internal.Inb
|
||||
}
|
||||
}
|
||||
|
||||
func RegisterOutboundConnectionHandlerCreator(prefix string, creator internal.OutboundHandlerCreator) (string, error) {
|
||||
func RegisterOutboundConnectionHandlerCreator(prefix string, creator internal.OutboundHandlerFactory) (string, error) {
|
||||
for {
|
||||
name := prefix + randomString()
|
||||
err := internal.RegisterOutboundHandlerCreator(name, creator)
|
||||
|
||||
Reference in New Issue
Block a user