diff options
author | Joseph Henry <josephjah@gmail.com> | 2017-05-31 13:07:03 -0700 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2017-05-31 13:07:03 -0700 |
commit | 7bc9666aacc693105e6ad103610ee949604ed5c2 (patch) | |
tree | 072b1263d72d36f8f39397394b986b1969deaa69 /service | |
parent | 2ec88e800877cfbc7f007d21f10429bc1b493006 (diff) | |
download | infinitytier-7bc9666aacc693105e6ad103610ee949604ed5c2.tar.gz infinitytier-7bc9666aacc693105e6ad103610ee949604ed5c2.zip |
fix for SDK's route/tap association in getTap()
Diffstat (limited to 'service')
-rw-r--r-- | service/OneService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index 1fabb7d9..b96f3aed 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1022,7 +1022,7 @@ public: for(it = _nets.begin(); it != _nets.end(); it++) { if(it->second.tap) { for(int j=0; j<it->second.tap->_ips.size(); j++) { - if(it->second.tap->_ips[j].isEqualPrefix(addr) || it->second.tap->_ips[j].ipsEqual(addr)) { + if(it->second.tap->_ips[j].isEqualPrefix(addr) || it->second.tap->_ips[j].ipsEqual(addr) || it->second.tap->_ips[j].containsAddress(addr)) { return it->second.tap; } } |