add entrypoint for router handler

This commit is contained in:
ginuerzh
2025-02-08 23:07:54 +08:00
parent 9cd03b6b59
commit 08ad260606
14 changed files with 259 additions and 122 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package registry
import (
"context"
"net"
"github.com/go-gost/core/router"
)
@@ -31,7 +30,7 @@ type routerWrapper struct {
r *routerRegistry
}
func (w *routerWrapper) GetRoute(ctx context.Context, dst net.IP, opts ...router.Option) *router.Route {
func (w *routerWrapper) GetRoute(ctx context.Context, dst string, opts ...router.Option) *router.Route {
v := w.r.get(w.name)
if v == nil {
return nil