mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-13 06:25:21 +00:00
14 lines
471 B
TypeScript
14 lines
471 B
TypeScript
import { Injectable } from "@angular/core";
|
|
import { Server } from '../models/server';
|
|
import { Project } from '../models/project';
|
|
import { Link } from '../models/link';
|
|
|
|
@Injectable()
|
|
export class PacketCaptureService {
|
|
constructor() {}
|
|
|
|
startCapture(server: Server, project: Project, link: Link, name: string) {
|
|
location.assign(`gns3+pcap://${server.host}:${server.port}?project_id=${project.project_id}&link_id=${link.link_id}&name=${name}`);
|
|
}
|
|
}
|