mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-06 04:31:22 +02:00
Send hp error to olm
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { sendToClient } from "#dynamic/routers/ws";
|
||||
import config from "@server/lib/config";
|
||||
|
||||
const udpPort = config.getRawConfig().gerbil.clients_start_port;
|
||||
|
||||
// Error codes for registration failures
|
||||
export const OlmErrorCodes = {
|
||||
OLM_NOT_FOUND: {
|
||||
@@ -86,6 +90,10 @@ export const OlmErrorCodes = {
|
||||
TERMINATED_BLOCKED: {
|
||||
code: "TERMINATED_BLOCKED",
|
||||
message: "This session was terminated because access was blocked."
|
||||
},
|
||||
HOLEPUNCH_MISSING: {
|
||||
code: "HOLEPUNCH_MISSING",
|
||||
message: `Hole punch information is missing. Please ensure your client can reach the server on UDP port ${udpPort} and try registering again.`
|
||||
}
|
||||
} as const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user