Skip to content

Commit

Permalink
Fix #66
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Jan 11, 2025
1 parent dd890c9 commit 8598dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const bannedCharacters = /[&<>\"'\r\n]/g;

export class Utilities {
public static getRealIP(obj: Indexable<any>): string {
return (obj[Config.instance.dev.sourceIpHeader] as string).split(',')[0];
return (obj[Config.instance.dev.sourceIpHeader] as string)?.split(',')[0] || "";
}

public static isRunningInDocker(): boolean {
Expand Down

0 comments on commit 8598dfc

Please sign in to comment.