mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-27 04:40:37 +03:00
Merge pull request #304 from itdoginfo/fix/diagnostic-singbox-config
feat(diagnostic): stringify sb config json
This commit is contained in:
@@ -288,7 +288,10 @@ async function handleShowSingBoxConfig() {
|
|||||||
if (showSingBoxConfig.success) {
|
if (showSingBoxConfig.success) {
|
||||||
ui.showModal(
|
ui.showModal(
|
||||||
_('Show sing-box config'),
|
_('Show sing-box config'),
|
||||||
renderModal(showSingBoxConfig.data as string, 'show_sing_box_config'),
|
renderModal(
|
||||||
|
JSON.stringify(showSingBoxConfig.data, null, 2),
|
||||||
|
'show_sing_box_config',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
logger.error(
|
logger.error(
|
||||||
|
|||||||
@@ -4164,7 +4164,10 @@ async function handleShowSingBoxConfig() {
|
|||||||
if (showSingBoxConfig.success) {
|
if (showSingBoxConfig.success) {
|
||||||
ui.showModal(
|
ui.showModal(
|
||||||
_("Show sing-box config"),
|
_("Show sing-box config"),
|
||||||
renderModal(showSingBoxConfig.data, "show_sing_box_config")
|
renderModal(
|
||||||
|
JSON.stringify(showSingBoxConfig.data, null, 2),
|
||||||
|
"show_sing_box_config"
|
||||||
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
logger.error(
|
logger.error(
|
||||||
|
|||||||
Reference in New Issue
Block a user