Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ fun buildSingBoxOutboundAmneziaWGBean(bean: AmneziaWGBean): SingBoxOptions.Outbo
if (bean.jmax != 0) jmax = bean.jmax
if (bean.s1 != 0) s1 = bean.s1
if (bean.s2 != 0) s2 = bean.s2
if (bean.s3 != 0) s3 = bean.s3
if (bean.s4 != 0) s4 = bean.s4
// The bundled amneziawg-go v1.0.4 UAPI does not accept s3/s4 yet.
// Keep these fields importable/storable, but do not emit them until
// the core supports the corresponding device keys.
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 No TODO / issue reference for eventual re-enablement

The comment hard-codes the version number (v1.0.4) but there is no // TODO: marker or issue tracker link — so when the bundled amneziawg-go is bumped to a version that does accept s3/s4, the suppression will remain silently in place unless someone remembers to revisit this file. Adding a short TODO with a link to the upstream issue would make the re-enablement self-discoverable.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

if (bean.h1.isNotBlank()) h1 = bean.h1
if (bean.h2.isNotBlank()) h2 = bean.h2
if (bean.h3.isNotBlank()) h3 = bean.h3
Expand Down
Loading