wireguard-client-wrapper
Version:
Crossplatform wrapper for wireguard client
17 lines (16 loc) • 329 B
TypeScript
export interface Interface {
address: string[];
listenPort?: number;
privateKey: string;
dns: string[];
}
export interface Peer {
publicKey: string;
allowedIPs: string[];
endpoint: string;
persistentKeepalive?: number;
}
export interface WgConfig {
wgInterface: Interface;
wgPeer: Peer;
}