mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update: other
This commit is contained in:
		| @@ -125,7 +125,7 @@ class V2rayController extends Controller | ||||
|     public function viewConfig(Request $request) | ||||
|     { | ||||
|         $serverService = new ServerService(); | ||||
|         $config = $serverService->getVmessConfig($request->input('node_id'), 23333); | ||||
|         $config = $serverService->getV2RayConfig($request->input('node_id'), 23333); | ||||
|         return response([ | ||||
|             'data' => $config | ||||
|         ]); | ||||
|   | ||||
| @@ -109,7 +109,7 @@ class DeepbworkController extends Controller | ||||
|         } | ||||
|         $serverService = new ServerService(); | ||||
|         try { | ||||
|             $json = $serverService->getVmessConfig($nodeId, $localPort); | ||||
|             $json = $serverService->getV2RayConfig($nodeId, $localPort); | ||||
|         } catch (\Exception $e) { | ||||
|             abort(500, $e->getMessage()); | ||||
|         } | ||||
|   | ||||
| @@ -92,7 +92,7 @@ class PoseidonController extends Controller | ||||
|  | ||||
|         $serverService = new ServerService(); | ||||
|         try { | ||||
|             $json = $serverService->getVmessConfig($nodeId, $localPort); | ||||
|             $json = $serverService->getV2RayConfig($nodeId, $localPort); | ||||
|             $json->poseidon = [ | ||||
|               'license_key' => (string)config('v2board.server_license'), | ||||
|             ]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user