Fix IP in ProvaService.ts and Add PUBLIC_URL
Signed-off-by: Rodrigo Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
1 parent
8dfe0d6f94
commit
b764c93106
7 files changed
+693
-287
No files matched your search
@@ -160,6 +160,28 @@ export function PublicVerificarProva() {
|
||||
JSON.parse(result.prova.timestamp).timestamp :
|
||||
result.prova.dataCriacao)}
|
||||
/>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<dt className="text-sm font-medium text-gray-500">IP:</dt>
|
||||
<dd className="mt-1 text-base text-gray-900 break-words">
|
||||
{result.verificacao?.ip ||
|
||||
result.prova.metadata?.connectionInfo?.forwardedIp ||
|
||||
(result.prova.metadata?.headers?.['x-forwarded-for'] ?
|
||||
result.prova.metadata.headers['x-forwarded-for'].split(',')[0].trim() :
|
||||
result.prova.metadata?.ipAddress) ||
|
||||
'Não disponível'}
|
||||
</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt className="text-sm font-medium text-gray-500">Porta:</dt>
|
||||
<dd className="mt-1 text-base text-gray-900 break-words">
|
||||
{result.verificacao?.porta ||
|
||||
result.prova.metadata?.clientPort ||
|
||||
result.prova.metadata?.connectionInfo?.socketPort ||
|
||||
'Não disponível'}
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user