Skip to content

Commit

Permalink
Add correct protocol when capturing with protocol handler
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Nov 3, 2023
1 parent 8253f8d commit 896ca92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/packet-capture.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class PacketCaptureService {

startCapture(server: Server, project: Project, link: Link, name: string) {
location.assign(
`gns3+pcap://${server.host}:${server.port}?protocol=${server.protocol}&project_id=${project.project_id}&link_id=${link.link_id}&project=${project.name}&name=${name}`
`gns3+pcap://${server.host}:${server.port}?protocol=${server.protocol.slice(0, -1)}&project_id=${project.project_id}&link_id=${link.link_id}&project=${project.name}&name=${name}`
);
}
}

0 comments on commit 896ca92

Please sign in to comment.