mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-05 03:58:39 +00:00
🔧 Fixed bugs
- Fixed Set null to User on ProxyService initial; - Fixed some WebApis have 'prefix' parameter that cause function calls not work as expect;
This commit is contained in:
@@ -289,8 +289,7 @@ class UserController extends Controller
|
||||
|
||||
public function exportProxyConfig(Request $request, User $user): JsonResponse
|
||||
{
|
||||
$proxyServer = new ProxyService;
|
||||
$proxyServer->setUser($user);
|
||||
$proxyServer = new ProxyService($user);
|
||||
$server = $proxyServer->getProxyConfig(Node::findOrFail($request->input('id')));
|
||||
|
||||
return Response::json(['status' => 'success', 'data' => $proxyServer->getUserProxyConfig($server, $request->input('type') !== 'text'), 'title' => $server['type']]);
|
||||
|
||||
Reference in New Issue
Block a user