File tree Expand file tree Collapse file tree
routes/(rbxclient)/game/join Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export default ( id : number ) => 10000 + ( id % 50000 )
1+ export const proxyOffset = 25000
2+
3+ export default ( id : number ) => 10000 + ( id % proxyOffset )
Original file line number Diff line number Diff line change 11import { error } from "@sveltejs/kit"
22import { membershipType } from "$lib/permissionLevels"
33import config from "$lib/server/config"
4- import idToPort from "$lib/server/idToPort"
4+ import idToPort , { proxyOffset } from "$lib/server/idToPort"
55import { SignData } from "$lib/server/sign"
66import { db , findWhere , Record } from "$lib/server/surreal"
77import joinQuery from "./join.surql"
@@ -36,7 +36,7 @@ function serverInfo(place: Session["place"]): ServerAddress {
3636 const url = new URL ( config . Orbiter . PublicURL )
3737 return {
3838 serverHostname : url . hostname , // no scheme, the address doesn't usually have a path anyway
39- serverPort : idToPort ( place . id ) ,
39+ serverPort : idToPort ( place . id ) + proxyOffset , // select the proxy port rather than the port of the server itself
4040 }
4141}
4242
You can’t perform that action at this time.
0 commit comments