init.go 399 B

12345678910111213
  1. package shadowsocks
  2. import (
  3. "v2ray.com/core/common"
  4. "v2ray.com/core/common/serial"
  5. "v2ray.com/core/proxy"
  6. )
  7. func init() {
  8. // Must happen after config is initialized
  9. common.Must(proxy.RegisterOutboundHandlerCreator(serial.GetMessageType(new(ClientConfig)), new(ClientFactory)))
  10. common.Must(proxy.RegisterInboundHandlerCreator(serial.GetMessageType(new(ServerConfig)), new(ServerFactory)))
  11. }