Skip to content

Commit 21e1ea1

Browse files
committed
fix: do not return host in getClientIp method
1 parent d783946 commit 21e1ea1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adminforth/auth.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ class AdminForthAuth implements IAdminForthAuth {
6565
headersLower['client-ip'] ||
6666
headersLower['client-address'] ||
6767
headersLower['client'] ||
68-
headersLower['x-host'] ||
69-
headersLower['host'] ||
70-
'unknown';
68+
headersLower['x-host'] ||
69+
null;
7170
}
7271
}
7372

0 commit comments

Comments
 (0)