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