0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-15 21:07:15 +03:00

Remove remnants of global transport (#3792)

* Remove remenants

* Generate pb.go

* Remove function
This commit is contained in:
Kobe Arthur Scofield
2024-09-12 02:06:11 +08:00
committed by GitHub
parent 297a9ae7bd
commit 7496413e5c
7 changed files with 62 additions and 298 deletions

View File

@ -185,13 +185,6 @@ func initInstanceWithConfig(config *Config, server *Instance) (bool, error) {
server.ctx = context.WithValue(server.ctx, "cone",
platform.NewEnvFlag(platform.UseCone).GetValue(func() string { return "" }) != "true")
if config.Transport != nil {
features.PrintDeprecatedFeatureWarning("global transport settings")
}
if err := config.Transport.Apply(); err != nil {
return true, err
}
for _, appSettings := range config.App {
settings, err := appSettings.GetInstance()
if err != nil {