1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-16 18:49:16 -04:00

rename TypedSettings to TypedMessage

This commit is contained in:
Darien Raymond
2016-12-15 11:51:09 +01:00
parent 5bbbdc05de
commit 50bc195f7f
52 changed files with 451 additions and 461 deletions

View File

@@ -11,10 +11,10 @@ import (
"v2ray.com/core/common/buf"
"v2ray.com/core/common/bufio"
"v2ray.com/core/common/errors"
"v2ray.com/core/common/loader"
"v2ray.com/core/common/log"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/common/protocol"
"v2ray.com/core/common/serial"
"v2ray.com/core/common/uuid"
"v2ray.com/core/proxy"
"v2ray.com/core/proxy/registry"
@@ -59,7 +59,7 @@ func (v *userByEmail) Get(email string) (*protocol.User, bool) {
user = &protocol.User{
Level: v.defaultLevel,
Email: email,
Account: loader.NewTypedSettings(account),
Account: serial.ToTypedMessage(account),
}
v.cache[email] = user
}
@@ -272,5 +272,5 @@ func (v *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.Inb
}
func init() {
registry.MustRegisterInboundHandlerCreator(loader.GetType(new(Config)), new(Factory))
registry.MustRegisterInboundHandlerCreator(serial.GetMessageType(new(Config)), new(Factory))
}