mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-19 21:05:25 +08:00
Fix filter by UID
This commit is contained in:
parent
1c5995e01e
commit
b22b7d56ef
@ -60,7 +60,7 @@ typedef struct {
|
||||
char *ifnames[MAX_IFACES];
|
||||
char *bpf;
|
||||
char *log_file;
|
||||
uid_t uid_filter;
|
||||
int uid_filter;
|
||||
int num_interfaces;
|
||||
int daemonize;
|
||||
int dump_datalink;
|
||||
@ -373,7 +373,6 @@ static int init_pcapd_capture(pcapd_runtime_t *rt, pcapd_conf_t *conf) {
|
||||
return 0;
|
||||
|
||||
err:
|
||||
finish_pcapd_capture(rt);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@ -180,9 +180,8 @@ static int connectPcapd(vpnproxy_data_t *proxy) {
|
||||
|
||||
log_d("Connected to pcapd");
|
||||
|
||||
unlink(PCAPD_SOCKET_PATH);
|
||||
|
||||
cleanup:
|
||||
unlink(PCAPD_SOCKET_PATH);
|
||||
close(sock);
|
||||
|
||||
return client;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user