Skip to content

Commit 366044b

Browse files
committed
fix: correct detecting if user ip is private
1 parent 25866fa commit 366044b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/modules/restApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
383383
defaultUserExists = true;
384384
}
385385
const clientIp = this.adminforth.auth.getClientIp(response.getHeaders?.() || {});
386-
const isPrivateIP = is_ip_private(clientIp);
386+
const isPrivateIP = is_ip_private(clientIp) === undefined || false ? true : false;
387387

388388
const publicPart = {
389389
brandName: this.adminforth.config.customization.brandName,

0 commit comments

Comments
 (0)