We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6743320 commit 6c13157Copy full SHA for 6c13157
adminforth/modules/restApi.ts
@@ -380,8 +380,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
380
if (username === 'adminforth') {
381
defaultUserExists = true;
382
}
383
- const headers = response.getHeaders?.() || {};
384
- const clientIp = this.adminforth.auth.getClientIp(headers);
+ const clientIp = this.adminforth.auth.getClientIp(response.getHeaders?.() || {});
385
const isPrivateIP = clientIp === null ? true : false;
386
387
const publicPart = {
0 commit comments