summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2017-05-31 13:07:03 -0700
committerJoseph Henry <josephjah@gmail.com>2017-05-31 13:07:03 -0700
commit7bc9666aacc693105e6ad103610ee949604ed5c2 (patch)
tree072b1263d72d36f8f39397394b986b1969deaa69 /service
parent2ec88e800877cfbc7f007d21f10429bc1b493006 (diff)
downloadinfinitytier-7bc9666aacc693105e6ad103610ee949604ed5c2.tar.gz
infinitytier-7bc9666aacc693105e6ad103610ee949604ed5c2.zip
fix for SDK's route/tap association in getTap()
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp2
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;
}
}