Skip to content

fix(db/sqlite): fix empty subscription servers due to invalid JSON marshal#1884

Merged
MarksonHon merged 1 commit into
v2rayA:mainfrom
yuexps:main
Jun 25, 2026
Merged

fix(db/sqlite): fix empty subscription servers due to invalid JSON marshal#1884
MarksonHon merged 1 commit into
v2rayA:mainfrom
yuexps:main

Conversation

@yuexps

@yuexps yuexps commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes an issue where importing subscriptions in v2rayA with SQLite backend results in an empty server list due to broken JSON structure after marshaling []gjson.Result.

Changes

  • Changed temporary slice type from []gjson.Result to []string in both ListGet and ListGetAll for touch/subscriptions.
  • Used strings.Join to manually build the JSON array, restoring the original valid format.

Verification

  • Code has been manually reviewed and logic verified.
  • Re-established the same output format as legacy BoltDB implementation.

@MarksonHon MarksonHon merged commit 6bbf135 into v2rayA:main Jun 25, 2026
7 checks passed
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