update lib part one
This commit is contained in:
parent
eba0b18689
commit
54a7ad6b9d
6 changed files with 41 additions and 4 deletions
|
|
@ -218,6 +218,12 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
|
|||
rc.keyValues = new HashMap<String, String>();
|
||||
}
|
||||
rc.keyValues.put(e.getKey().substring(8), e.getValue());
|
||||
} else if (e.getKey().equals("straight")) {
|
||||
String[] sa = e.getValue().split(",");
|
||||
for (int i = 0; i<sa.length;i++) {
|
||||
int v = Integer.valueOf(sa[i]);
|
||||
if (wplist.size() > v) wplist.get(v).direct = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
cr = new RoutingEngine(null, null, serviceContext.segmentDir, wplist, rc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue