Explorar el Código

warning message for global trasnport config

Darien Raymond hace 7 años
padre
commit
86f8fe4eb4
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      transport/internet/config.go

+ 5 - 1
transport/internet/config.go

@@ -1,6 +1,9 @@
 package internet
 
-import "v2ray.com/core/common/serial"
+import (
+	"v2ray.com/core/common/serial"
+	"v2ray.com/core/features"
+)
 
 type ConfigCreator func() interface{}
 
@@ -107,6 +110,7 @@ func (c *StreamConfig) HasSecuritySettings() bool {
 }
 
 func ApplyGlobalTransportSettings(settings []*TransportConfig) error {
+	features.PrintDeprecatedFeatureWarning("global transport settings")
 	globalTransportSettings = settings
 	return nil
 }