feat(admin): manage WebRTC settings from console

This commit is contained in:
illusia committed 2026-09-03 07:52:13 +08:00
1 parent ecff06e9a1
commit 5c3d1b7e5d
11 files changed
+163 -58

No files matched your search

+4
View File
@@ -332,6 +332,10 @@ function readSettingsInput(body: Record<string, unknown>): AdminSettingsInput {
accessMode: body.accessMode === "open" ? "open" : body.accessMode === "fixed" ? "fixed" : body.accessMode as never,
siteName: readString(body, "siteName", 80),
welcomeText: readOptionalString(body, "welcomeText", 500),
webRtcEnabled: body.webRtcEnabled === true,
webRtcPublicHost: readOptionalString(body, "webRtcPublicHost", 253),
webRtcUdpStart: readOptionalNumber(body, "webRtcUdpStart", 40000),
webRtcUdpEnd: readOptionalNumber(body, "webRtcUdpEnd", 40099),
};
}