Browse Source

warning message for global trasnport config

Darien Raymond 6 years ago
parent
commit
86f8fe4eb4
1 changed files with 5 additions and 1 deletions
  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
 }