Selaa lähdekoodia

return pointer of config

v2ray 9 vuotta sitten
vanhempi
commit
86490e884c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      transport/internet/authenticators/noop/noop.go

+ 1 - 1
transport/internet/authenticators/noop/noop.go

@@ -24,5 +24,5 @@ func (this NoOpAuthenticatorFactory) Create(config internet.AuthenticatorConfig)
 type NoOpAuthenticatorConfig struct{}
 
 func init() {
-	internet.RegisterAuthenticator("none", NoOpAuthenticatorFactory{}, func() interface{} { return NoOpAuthenticatorConfig{} })
+	internet.RegisterAuthenticator("none", NoOpAuthenticatorFactory{}, func() interface{} { return &NoOpAuthenticatorConfig{} })
 }