Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove legacy code #3838

Merged
merged 3 commits into from
Sep 23, 2024
Merged

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
36 checks passed
@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
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