wings/router
Dane Everitt 32d6594476 fix incorrect error handling logic when a JWT is created wrongly; closes pterodactyl/panel#3295
Prior to this logic not only was the error response incorrect for events, but we registered event listeners before the authentication event; so if auth failed we flooded the socket with tons of output that was never going to be sent anyways.

This change now waits to register listeners until the socket is fully authenticated and we're guaranteed to have a token present.
2021-10-25 21:23:45 -07:00
..
downloader downloader: fix internal range check 2021-08-02 15:16:38 -06:00
middleware break everything 2021-08-02 15:07:00 -06:00
tokens break everything 2021-08-02 15:07:00 -06:00
websocket fix incorrect error handling logic when a JWT is created wrongly; closes pterodactyl/panel#3295 2021-10-25 21:23:45 -07:00
error.go break everything 2021-08-02 15:07:00 -06:00
middleware.go break everything 2021-08-02 15:07:00 -06:00
router_download.go break everything 2021-08-02 15:07:00 -06:00
router_server_backup.go break everything 2021-08-02 15:07:00 -06:00
router_server_files.go Add deprecation flag on the directory, don't remove it entirely 2021-08-02 20:15:25 -07:00
router_server_ws.go fix incorrect error handling logic when a JWT is created wrongly; closes pterodactyl/panel#3295 2021-10-25 21:23:45 -07:00
router_server.go add context timeouts to avoid hanging wings boot process if docker has a hiccup; closes pterodactyl/panel#3358 2021-09-11 14:13:19 -07:00
router_system.go Simplify logic when creating a new installer; no longer requires an entire server object be passed. 2021-08-29 14:08:01 -07:00
router_transfer.go Simplify logic when creating a new installer; no longer requires an entire server object be passed. 2021-08-29 14:08:01 -07:00
router.go Cleanup server sync logic to work in a single consistent format (#101) 2021-08-29 13:37:18 -07:00