add tunnel handler and connector

This commit is contained in:
ginuerzh
2023-10-15 15:39:25 +08:00
parent 033151a770
commit 497915f465
24 changed files with 1375 additions and 63 deletions

View File

@ -259,6 +259,10 @@ func (ing *localIngress) Get(ctx context.Context, host string) string {
return ep
}
func (ing *localIngress) Set(ctx context.Context, host, endpoint string) {
}
func (ing *localIngress) lookup(host string) string {
if ing == nil || len(ing.rules) == 0 {
return ""