mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-09-22 15:29:03 -07:00
Compare commits
1
Commits
dev
...
laduke/tunneled
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7412076a0a |
@@ -2993,6 +2993,12 @@ class OneServiceImpl : public OneService {
|
||||
}
|
||||
Metrics::udp_recv += len;
|
||||
const uint64_t now = OSUtils::now();
|
||||
|
||||
char buf[255];
|
||||
auto x = reinterpret_cast<const InetAddress*>(from);
|
||||
fprintf(stderr, "phyOnDatagram: len %lu - from %s - scope: %d\n", len, x->toString(buf), x->ipScope());
|
||||
|
||||
|
||||
if ((len >= 16) && (reinterpret_cast<const InetAddress*>(from)->ipScope() == InetAddress::IP_SCOPE_GLOBAL)) {
|
||||
_lastDirectReceiveFromGlobal = now;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user