-
Notifications
You must be signed in to change notification settings - Fork 0
fix: guard unsupported AmneziaWG s3/s4 keys #33
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The comment hard-codes the version number ( 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 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.