add api config for router

This commit is contained in:
ginuerzh
2023-11-19 16:16:12 +08:00
parent c95edd6ed3
commit 44064e4dd1
7 changed files with 179 additions and 81 deletions

View File

@ -214,10 +214,6 @@ func (p *localRouter) GetRoute(ctx context.Context, dst net.IP, opts ...router.O
return nil
}
func (*localRouter) SetRoute(ctx context.Context, route *router.Route, opts ...router.Option) bool {
return false
}
func (*localRouter) parseLine(s string) (route *router.Route) {
line := strings.Replace(s, "\t", " ", -1)
line = strings.TrimSpace(line)