made Routing a static class

This commit is contained in:
2023-07-30 15:35:43 +02:00
parent 89f209130e
commit 505d318ffb
4 changed files with 35 additions and 36 deletions

View File

@@ -9,7 +9,7 @@ using tink.CoreApi;
class Net extends CLIAppBase {
public function new() {
registerSyncSubcommand("route", (args)->{
var routes = Routing.instance.getRouteTable();
var routes = Routing.getRouteTable();
for(k => v in routes) {
handle.writeLine('${k} => ${v.interf.name()}(${v.cost})');