Selaa lähdekoodia

register shadowsocks client factory

Darien Raymond 9 vuotta sitten
vanhempi
commit
cdb0debcb0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      proxy/shadowsocks/init.go

+ 1 - 1
proxy/shadowsocks/init.go

@@ -7,6 +7,6 @@ import (
 
 func init() {
 	// Must happen after config is initialized
-
+	registry.MustRegisterOutboundHandlerCreator(loader.GetType(new(ClientConfig)), new(ClientFactory))
 	registry.MustRegisterInboundHandlerCreator(loader.GetType(new(ServerConfig)), new(ServerFactory))
 }