Fix TUIC UDP

This commit is contained in:
世界
2023-08-21 18:11:44 +08:00
parent 738c25d818
commit c0bbb3849d
10 changed files with 100 additions and 62 deletions

View File

@@ -99,6 +99,12 @@ func (h *TUIC) newPacketConnection(ctx context.Context, conn N.PacketConn, metad
}
func (h *TUIC) Start() error {
if h.tlsConfig != nil {
err := h.tlsConfig.Start()
if err != nil {
return err
}
}
packetConn, err := h.myInboundAdapter.ListenUDP()
if err != nil {
return err