UNPKG

wireguard-tools

Version:

The best way to interact with WireGuard from Node

20 lines (19 loc) 739 B
import { WgConfigPeer } from "../types/WgConfigObject"; import { WgConfig } from "../WgConfig"; interface CreatePeerPairsOptions { /** The config to derive public key from for the peer */ config: WgConfig; /** The peer settings to apply when adding this config as a peer */ peerSettings: Omit<WgConfigPeer, 'publicKey'> | ((args: { thisConfig: WgConfig; peerConfig: WgConfig; }) => Omit<WgConfigPeer, 'publicKey'>); } /** * Create peer pairs from more than one WgConfig object. * * Will add wgConfigs[0] as a peer in wgConfigs[1] and wgConfigs[1] as a peer in wgConfigs[0] etc. * Will fail and error if */ export declare const createPeerPairs: (pairs: CreatePeerPairsOptions[]) => void; export {};