xchacha20-poly1305:gomobile 未读取模块 godebug,暂保留 go.mod 配置

xchacha20-poly1305 认为 gomobile 绑定模块时不会读取被绑定模块 go.mod 的 godebug 行,因此 godebug multipathtcp=0 不会生效;如果出于安全考虑改动,他认为大多数 Android 厂商不支持 MPTCP,定制系统遇到的攻击机会也少,倾向继续保留 go.mod 配置。若以后还有其他 godebug 设置,再考虑改用 ldflags。

作者原文

In my opinion, this is a bug of gomobile. Bacause gomobile is lack of maintaince and setting godebug in go.mod is added since go 1.23.

If changing this is for security, most of the Android OEM does not support mptcp. Assume that someone is using a custom OEM with mptcp support, the opportunity to attack is also rare. That's their problem.

So I would rather like to keep godebug field in go.mod.

If there will be other godebug setting to use in the future, I will move godebug settings to ldflags.