mrchatam
169cd86e00
fix(sub): never use X-Real-IP as the subscription host ( #6608 )
...
ResolveRequest and the panel's resolveHost fell back to X-Real-IP for the host when a trusted proxy sent no X-Forwarded-Host. X-Real-IP names the visitor, so behind nginx with only that header set, subscription and exported links advertised the subscriber's own public IP as the server.
The host now comes from a trusted X-Forwarded-Host, else the dialed request Host. X-Real-IP stays a client-IP source only.
Fixes #6589 .
2026-09-26 21:13:46 +02:00
..
2026-09-14 12:10:25 +02:00
2026-09-14 12:10:25 +02:00
2026-09-13 20:01:58 +02:00
2026-09-13 20:01:58 +02:00
2026-09-26 20:31:50 +02:00
2026-09-26 20:31:50 +02:00
2026-09-08 17:14:01 +02:00
2026-09-26 20:31:42 +02:00
2026-09-26 20:31:42 +02:00
2026-07-27 14:37:57 +02:00
2026-07-27 14:37:57 +02:00
2026-09-10 21:58:55 +02:00
2026-09-16 01:55:56 +02:00
2026-09-26 21:13:39 +02:00
2026-09-26 21:13:39 +02:00
2026-07-21 15:52:33 +02:00
2026-09-13 12:53:57 +02:00
2026-09-13 12:53:57 +02:00
2026-09-12 11:12:13 +02:00
2026-08-18 13:55:04 +02:00
2026-09-03 22:32:05 +02:00
2026-09-16 12:16:26 +02:00
2026-09-10 17:05:54 +02:00
2026-08-18 13:55:04 +02:00
2026-09-16 12:16:26 +02:00
2026-09-26 21:13:46 +02:00
2026-07-29 21:01:59 +02:00
2026-09-13 12:53:57 +02:00
2026-09-13 12:53:57 +02:00
2026-09-16 11:56:20 +02:00
2026-09-16 11:56:20 +02:00
2026-09-11 11:59:35 +02:00
2026-09-03 16:35:07 +02:00
2026-09-03 22:32:05 +02:00
2026-09-16 01:55:56 +02:00
2026-09-13 11:51:56 +02:00
2026-09-13 11:51:56 +02:00
2026-09-13 11:51:56 +02:00
2026-09-10 17:05:54 +02:00
2026-09-10 17:05:54 +02:00
2026-09-10 17:05:54 +02:00
2026-09-10 17:05:54 +02:00
2026-09-10 17:05:54 +02:00
2026-09-12 10:15:48 +02:00
2026-09-14 12:10:25 +02:00
2026-09-12 11:12:13 +02:00
2026-09-08 15:36:57 +02:00
2026-09-10 17:05:54 +02:00
2026-07-23 23:57:29 +02:00
2026-09-15 21:13:29 +02:00
2026-09-15 21:13:29 +02:00
2026-09-15 21:13:29 +02:00
2026-08-14 20:13:15 +02:00
2026-09-08 17:14:01 +02:00
2026-09-03 16:35:07 +02:00
2026-09-10 17:05:54 +02:00
2026-09-03 16:35:07 +02:00
2026-09-26 20:31:47 +02:00
2026-07-02 16:58:00 +02:00
2026-08-15 23:09:16 +02:00
2026-09-08 17:14:01 +02:00
2026-09-08 15:36:57 +02:00
2026-09-09 01:53:00 +02:00
2026-09-12 10:15:48 +02:00
2026-09-26 20:31:47 +02:00
2026-09-26 21:13:46 +02:00
2026-09-13 19:58:27 +02:00
2026-09-10 17:05:54 +02:00
2026-09-10 17:05:54 +02:00
2026-08-15 15:22:11 +02:00
2026-09-10 17:05:54 +02:00
2026-09-10 17:05:54 +02:00
2026-09-10 17:05:54 +02:00
2026-09-15 21:13:29 +02:00
2026-09-10 17:05:54 +02:00
2026-09-13 19:58:10 +02:00