From f06065f947dee46e3471c2fa57d72e8d1d09de5c Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Sep 2023 21:29:24 +0900 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E7=94=A8=E6=88=B7=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E7=A7=81=E9=92=A5=EF=BC=8C=E9=98=B2=E6=AD=A2PrivateKe?= =?UTF-8?q?y=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/ServerService.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Services/ServerService.php b/app/Services/ServerService.php index 69610ce4..f442d681 100644 --- a/app/Services/ServerService.php +++ b/app/Services/ServerService.php @@ -33,7 +33,14 @@ class ServerService } else { $server[$key]['last_check_at'] = Cache::get(CacheKey::get('SERVER_VLESS_LAST_CHECK_AT', $server[$key]['id'])); } + $servers[] = $server[$key]->toArray(); + + if (isset($server[$key]['tls_settings'])) { + if (isset($server[$key]['tls_settings']['private_key'])) { + $servers[$key]['tls_settings']['private_key'] = "*"; + } + } }