feat: add meek (#258)

Co-authored-by: mzz <2017@duck.com>
Co-authored-by: dae-bot[bot] <136105375+dae-bot[bot]@users.noreply.github.com>
This commit is contained in:
秋のかえで
2023-08-06 22:35:23 +08:00
committed by GitHub
parent 7ef8205d41
commit 62ca625aaf
6 changed files with 40 additions and 7 deletions

View File

@ -8,6 +8,7 @@ package control
import (
"context"
"fmt"
"github.com/daeuniverse/softwind/transport/meek"
"net"
"net/netip"
"os"
@ -276,8 +277,9 @@ func NewControlPlane(
}
// Filter out groups.
// FIXME: Ugly code here: reset grpc clients manually.
// FIXME: Ugly code here: reset grpc and meek clients manually.
grpc.CleanGlobalClientConnectionCache()
meek.CleanGlobalRoundTripperCache()
dialerSet := outbound.NewDialerSetFromLinks(option, tagToNodeList)
deferFuncs = append(deferFuncs, dialerSet.Close)
for _, group := range groups {