1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-24 06:04:27 -04:00
v2fly/proxy/shadowsocks/init.go

14 lines
399 B
Go
Raw Normal View History

2016-10-31 10:24:28 -04:00
package shadowsocks
import (
2016-12-27 18:53:29 -05:00
"v2ray.com/core/common"
2016-12-15 05:51:09 -05:00
"v2ray.com/core/common/serial"
2016-12-15 09:46:20 -05:00
"v2ray.com/core/proxy"
2016-10-31 10:24:28 -04:00
)
func init() {
// Must happen after config is initialized
2016-12-27 18:53:29 -05:00
common.Must(proxy.RegisterOutboundHandlerCreator(serial.GetMessageType(new(ClientConfig)), new(ClientFactory)))
common.Must(proxy.RegisterInboundHandlerCreator(serial.GetMessageType(new(ServerConfig)), new(ServerFactory)))
2016-10-31 10:24:28 -04:00
}