存档2020年5月12日

Wireshark

mac下用Wireshark抓包报错you don’t have permission to capture on that device

cd /dev
ls -la | grep bp

看到用户组所属
crw——- 1 root wheel 23, 0 6 23 23:42 bpf0
crw——- 1 root wheel 23, 1 6 23 23:42 bpf1
crw——- 1 root wheel 23, 2 6 23 23:43 bpf2
crw——- 1 root wheel 23, 3 6 23 23:42 bpf3

这样导致上述没有权限问题,需要手动修改,确保所有列表有你的用户名和admin作为用户组。
whoami 命令看你当前用户名
sudo chown 上面看到的用户名:admin bp*

test:
https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice