mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-07 03:06:40 +00:00
Build client site resource associations and send messages
This commit is contained in:
@@ -3,7 +3,7 @@ import { SubnetProxyTarget } from "@server/lib/ip";
|
||||
|
||||
export async function addTargets(newtId: string, targets: SubnetProxyTarget[]) {
|
||||
await sendToClient(newtId, {
|
||||
type: `newt/wg/target/add`,
|
||||
type: `newt/wg/targets/add`,
|
||||
data: targets
|
||||
});
|
||||
}
|
||||
@@ -13,7 +13,7 @@ export async function removeTargets(
|
||||
targets: SubnetProxyTarget[]
|
||||
) {
|
||||
await sendToClient(newtId, {
|
||||
type: `newt/wg/target/remove`,
|
||||
type: `newt/wg/targets/remove`,
|
||||
data: targets
|
||||
});
|
||||
}
|
||||
@@ -26,7 +26,7 @@ export async function updateTargets(
|
||||
}
|
||||
) {
|
||||
await sendToClient(newtId, {
|
||||
type: `newt/wg/target/update`,
|
||||
type: `newt/wg/targets/update`,
|
||||
data: targets
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user