Skip to content

luci-app-ssr-plus: fix multiline nft comments - #2035

Open
Bianzinan wants to merge 1 commit into
fw876:devfrom
Bianzinan:bianzinan-fix-multiline-nft-comments
Open

luci-app-ssr-plus: fix multiline nft comments#2035
Bianzinan wants to merge 1 commit into
fw876:devfrom
Bianzinan:bianzinan-fix-multiline-nft-comments

Conversation

@Bianzinan

Copy link
Copy Markdown

Summary

Serialize IP-list metadata onto one comment line when persisting nftables rules. This leaves nft set population unchanged.

Reproduction

A multiline UCI value such as 8.153.77.177\n123.56.167.14 previously wrote the second IP as a bare nftables line. The metadata echoes preserved embedded newlines, producing invalid 99-shadowsocksr.nft syntax.

Validation

  • Checked empty, single, space-separated, and newline-separated values
  • Ran sh -n luci-app-ssr-plus/root/usr/bin/ssr-rules
  • Ran git diff --check

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

1 participant