3x-ui/internal/web/service/panel
MHSanaei 06cb1742a1
fix(server): bound the public-IP lookup and accept only an address
getPublicIP read a third-party IP echo service's body whole and cached
whatever came back as the panel's address, so one misbehaving service
could make the panel inflate an endless response at startup, and an
error page became the address shown in every status sample.

The read is capped at 64 bytes and only a parsable IP is accepted;
anything else counts as unavailable. The GitHub release lookups are
capped as well.
2026-11-01 13:18:01 +01:00
..
api_token.go perf(auth): look up api tokens by their hash index (#6915) 2026-10-24 05:06:49 +02:00
api_token_scope_test.go fix(auth): add node-admin token scope for panel updates (#6666) 2026-10-17 23:45:26 +02:00
api_token_test.go perf(auth): look up api tokens by their hash index (#6915) 2026-10-24 05:06:49 +02:00
panel.go fix(server): bound the public-IP lookup and accept only an address 2026-11-01 13:18:01 +01:00
panel_other.go fix: make all self-managed file downloads/installs atomic, with real completion status (#5711) 2026-07-02 18:19:33 +02:00
panel_test.go refactor(util): move panel version comparison into a shared package 2026-10-02 23:56:52 +02:00
panel_unix.go fix: make all self-managed file downloads/installs atomic, with real completion status (#5711) 2026-07-02 18:19:33 +02:00
sponsor.go fix(panel): bound the sponsor logo cache and evict logos that left the list 2026-11-01 09:03:42 +01:00
sponsor_test.go fix(panel): bound the sponsor logo cache and evict logos that left the list 2026-11-01 09:03:42 +01:00
user.go fix(web): refuse oversized login usernames before recording them 2026-10-31 09:04:27 +00:00
user_test.go fix(web): refuse oversized login usernames before recording them 2026-10-31 09:04:27 +00:00
websocket.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00