mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-08 03:36:37 +00:00
Newt working
This commit is contained in:
@@ -43,9 +43,7 @@ export async function deletePeer(exitNodeId: number, publicKey: string) {
|
||||
throw new Error(`Exit node with ID ${exitNodeId} is not reachable`);
|
||||
}
|
||||
try {
|
||||
const response = await axios.delete(`${exitNode.reachableAt}/peer`, {
|
||||
data: { publicKey } // Send public key in request body
|
||||
});
|
||||
const response = await axios.delete(`${exitNode.reachableAt}/peer?public_key=${encodeURIComponent(publicKey)}`);
|
||||
logger.info('Peer deleted successfully:', response.data.status);
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user