mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-07 06:07:36 +03:00
fix: rm quic-go multiplexer
Some checks failed
Go Build / build (1.21.x, ubuntu-latest) (push) Successful in 31s
Go Build / build (1.22.x, ubuntu-latest) (push) Successful in 39s
Go Build / build (1.21.x, macos-latest) (push) Has been cancelled
Go Build / build (1.21.x, windows-latest) (push) Has been cancelled
Go Build / build (1.22.x, macos-latest) (push) Has been cancelled
Go Build / build (1.22.x, windows-latest) (push) Has been cancelled
Some checks failed
Go Build / build (1.21.x, ubuntu-latest) (push) Successful in 31s
Go Build / build (1.22.x, ubuntu-latest) (push) Successful in 39s
Go Build / build (1.21.x, macos-latest) (push) Has been cancelled
Go Build / build (1.21.x, windows-latest) (push) Has been cancelled
Go Build / build (1.22.x, macos-latest) (push) Has been cancelled
Go Build / build (1.22.x, windows-latest) (push) Has been cancelled
This commit is contained in:
parent
6083564c7a
commit
5aaa94569b
2 changed files with 21 additions and 9 deletions
|
@ -31,15 +31,15 @@ type connMultiplexer struct {
|
|||
|
||||
var _ multiplexer = &connMultiplexer{}
|
||||
|
||||
func getMultiplexer() multiplexer {
|
||||
connMuxerOnce.Do(func() {
|
||||
connMuxer = &connMultiplexer{
|
||||
conns: make(map[string]indexableConn),
|
||||
logger: utils.DefaultLogger.WithPrefix("muxer"),
|
||||
}
|
||||
})
|
||||
return connMuxer
|
||||
}
|
||||
// func getMultiplexer() multiplexer {
|
||||
// connMuxerOnce.Do(func() {
|
||||
// connMuxer = &connMultiplexer{
|
||||
// conns: make(map[string]indexableConn),
|
||||
// logger: utils.DefaultLogger.WithPrefix("muxer"),
|
||||
// }
|
||||
// })
|
||||
// return connMuxer
|
||||
// }
|
||||
|
||||
func (m *connMultiplexer) index(addr net.Addr) string {
|
||||
return addr.Network() + " " + addr.String()
|
||||
|
|
12
u_oscur0_multiplexer.go
Normal file
12
u_oscur0_multiplexer.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package quic
|
||||
|
||||
// We disable the multiplexer as oscur0 uses its own multiplexer.
|
||||
func getMultiplexer() multiplexer {
|
||||
return &oscur0Multiplexer{}
|
||||
}
|
||||
|
||||
type oscur0Multiplexer struct{}
|
||||
|
||||
func (*oscur0Multiplexer) AddConn(c indexableConn) {}
|
||||
|
||||
func (*oscur0Multiplexer) RemoveConn(c indexableConn) error { return nil }
|
Loading…
Add table
Add a link
Reference in a new issue