Skip to content

Remove legacy code#3838

Merged
yuhan6665 merged 3 commits intoXTLS:mainfrom
KobeArthurScofield:transport-registry-change
Sep 23, 2024
Merged

Remove legacy code#3838
yuhan6665 merged 3 commits intoXTLS:mainfrom
KobeArthurScofield:transport-registry-change

Conversation

@KobeArthurScofield
Copy link
Contributor

@KobeArthurScofield KobeArthurScofield commented Sep 21, 2024

主要移除 transport 中已经标记过时的代码,现在对 transport 配置的处理代码仅剩余新路径,同时注册新的 transport 不需要再改动 transport/internet/config.proto,彻底使用 string
以上改动主要在 transport/internet/ 中。(并且升级了一批测试,调整 transport 名字的存放位置)

至此目前已经明确标记为弃用并且已经迁移的内容大体上清理完成。

次要改动:

  • 清理更换日志系统时留下的注释

话说对 transport 初始化的时候使用 common.RegisterConfig() 是必须/更好还是看起来是个手误?似乎移除之后不影响一般正常使用。

* Clear legacy proto field

* Fix missing

* Unify protocolname

* Test remove

* Supressor

* Weird code
@KobeArthurScofield KobeArthurScofield marked this pull request as ready for review September 23, 2024 04:04
@yuhan6665 yuhan6665 merged commit 7086d28 into XTLS:main Sep 23, 2024
@yuhan6665
Copy link
Member

Thanks! Looks good to me. It seems transport DI should use RegisterProtocolConfigCreator()

@KobeArthurScofield KobeArthurScofield deleted the transport-registry-change branch September 24, 2024 13:19
leninalive pushed a commit to amnezia-vpn/amnezia-xray-core that referenced this pull request Oct 29, 2024
* Add feature migration notice

* Remove legacy code of transport processing

* Clear legacy proto field

* Fix missing

* Unify protocolname

* Test remove

* Supressor

* Weird code

* Remove errorgen related comments
dragonbreath2000 pushed a commit to dragonbreath2000/Xray-core that referenced this pull request Dec 11, 2024
* Add feature migration notice

* Remove legacy code of transport processing

* Clear legacy proto field

* Fix missing

* Unify protocolname

* Test remove

* Supressor

* Weird code

* Remove errorgen related comments
dragonbreath2000 pushed a commit to dragonbreath2000/Xray-core that referenced this pull request Dec 12, 2024
* Add feature migration notice

* Remove legacy code of transport processing

* Clear legacy proto field

* Fix missing

* Unify protocolname

* Test remove

* Supressor

* Weird code

* Remove errorgen related comments
it2konst pushed a commit to it2konst/gametunnel-core that referenced this pull request Mar 1, 2026
* Add feature migration notice

* Remove legacy code of transport processing

* Clear legacy proto field

* Fix missing

* Unify protocolname

* Test remove

* Supressor

* Weird code

* Remove errorgen related comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants