mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Transport: Add HTTP3 to HTTP (#3819)
This commit is contained in:
parent
7086d286be
commit
3632e83faa
5 changed files with 316 additions and 128 deletions
|
@ -365,7 +365,13 @@ func ListenSH(ctx context.Context, address net.Address, port net.Port, streamSet
|
|||
|
||||
// Addr implements net.Listener.Addr().
|
||||
func (ln *Listener) Addr() net.Addr {
|
||||
return ln.listener.Addr()
|
||||
if ln.h3listener != nil {
|
||||
return ln.h3listener.Addr()
|
||||
}
|
||||
if ln.listener != nil {
|
||||
return ln.listener.Addr()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Close implements net.Listener.Close().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue