diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-06 11:10:04 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-06 11:10:04 -0700 |
| commit | 43780742b03ffa69fb1a1868f976ac03edce921b (patch) | |
| tree | 3dfe11cba1a6783a279fcf6c9c33878ec8d7d614 /node/Path.hpp | |
| parent | 3790ebe77a90cdaad629f275c2c4294694626733 (diff) | |
| download | infinitytier-43780742b03ffa69fb1a1868f976ac03edce921b.tar.gz infinitytier-43780742b03ffa69fb1a1868f976ac03edce921b.zip | |
comments, docs
Diffstat (limited to 'node/Path.hpp')
| -rw-r--r-- | node/Path.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Path.hpp b/node/Path.hpp index 718e1cdd..8151ed27 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -156,6 +156,8 @@ public: */ inline unsigned int preferenceRank() const { + // This causes us to rank paths in order of IP scope rank (see InetAdddress.hpp) but + // within each IP scope class to prefer IPv6 over IPv4. return ( ((unsigned int)_ipScope << 1) | (unsigned int)(_addr.ss_family == AF_INET6) ); } |
