mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-01 07:39:09 +00:00
Fix up ws messages
This commit is contained in:
@@ -95,7 +95,7 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
|
||||
clientsRes.map(async (client) => {
|
||||
return {
|
||||
publicKey: client.pubKey,
|
||||
allowedIps: "0.0.0.0/0" // TODO: We should lock this down more
|
||||
allowedIps: ["0.0.0.0/0"] // TODO: We should lock this down more
|
||||
};
|
||||
})
|
||||
);
|
||||
@@ -112,7 +112,7 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
|
||||
message: {
|
||||
type: "newt/wg/receive-config", // what to make the response type?
|
||||
data: {
|
||||
config: configResponse
|
||||
...configResponse
|
||||
}
|
||||
},
|
||||
broadcast: false, // Send to all clients
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
targets
|
||||
} from "@server/db/schema";
|
||||
import { eq, and, sql } from "drizzle-orm";
|
||||
import { addPeer, deletePeer } from "../newt/peers";
|
||||
import { addPeer, deletePeer } from "../gerbil/peers";
|
||||
import logger from "@server/logger";
|
||||
|
||||
export const handleNewtRegisterMessage: MessageHandler = async (context) => {
|
||||
|
||||
Reference in New Issue
Block a user