Answer the question
In order to leave comments, you need to log in
How to organize traffic interception?
Good afternoon, there is a server (1) that transmits data to several other servers (2,3). When running wireshark on the server (1), some of the packets are not captured (in fact, the exchange is going on). All servers are strictly registered static IP. Is it possible between servers (1) and (2) to install a computer with two network interfaces (preferably raspberry pi + usb LAN, due to its small size) to capture all packets? How are Rpi network interfaces configured in this case? In my understanding, something like a passive mitm should turn out.
Answer the question
In order to leave comments, you need to log in
wireshark cannot fail to intercept traffic passing through the interface.
document.querySelector("#nav-toggle")
There is no such element on the page, so querySelector returns null .
This is what the error says - null does not have an addEventListener method .
addEventListener is called only in one place - however, it is not difficult to figure it out at all.
In general, if you already use jquery, use it to its fullest:
if ($(window).width() > 991) {
$("#nav-toggle").on("click", function() {
$(this).toggleClass("active");
});
}
Here is the solution
if (window.innerWidth > 991) {
document.querySelector("#nav-toggle").addEventListener("click", function(e) {
e.target.classList.toggle("active");
},false);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question