Skip to content

Commit

Permalink
fix: 다운로드 메서드의 반환 값이 알맞아야 합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laeng committed Aug 16, 2023
1 parent 14061ca commit a6e8e1c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Http/Controllers/App/Mission/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ public function download(Request $request, string $instanceName): \Illuminate\Ht
abort(404);
}

if (!in_array($instanceName, self::$instances)) return abort(404);
if (!in_array($instanceName, self::$instances)) {
abort(404);
}

$instanceView = $this->azureService->getInstanceView($instanceName);
$pass = false;
Expand All @@ -283,7 +285,9 @@ public function download(Request $request, string $instanceName): \Illuminate\Ht
}
}

if (!$pass) return abort(404);
if (!$pass) {
abort(404);
}

$ip = $this->getIpAddress($instanceName);
$port = '3389';
Expand Down

0 comments on commit a6e8e1c

Please sign in to comment.