network: detect if link is p2p and use local addr

without this we endup with peer's addr

Signed-off-by: Paymon MARANDI <darwinskernel@gmail.com>
This commit is contained in:
Paymon
2023-04-26 13:49:17 -04:00
parent 757f20fc04
commit 3da3732cc9
2 changed files with 10 additions and 2 deletions

View File

@ -62,6 +62,7 @@ class Network : public ALabel {
bool want_link_dump_;
bool want_addr_dump_;
bool dump_in_progress_;
bool is_p2p_;
unsigned long long bandwidth_down_total_;
unsigned long long bandwidth_up_total_;