Upgrade github.com/xtls/reality to f34b4d174342

Fixes https://github.com/XTLS/Xray-core/issues/1712
This commit is contained in:
RPRX 2023-02-26 19:26:57 +08:00 committed by GitHub
parent a5b297f968
commit c38179a67f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 8 deletions

View file

@ -1,6 +1,7 @@
package reality
import (
"net"
"time"
"github.com/xtls/reality"
@ -8,7 +9,10 @@ import (
)
func (c *Config) GetREALITYConfig() *reality.Config {
var dialer net.Dialer
config := &reality.Config{
DialContext: dialer.DialContext,
Show: c.Show,
Type: c.Type,
Dest: c.Dest,

View file

@ -52,7 +52,7 @@ func (c *Conn) HandshakeAddress() net.Address {
}
func Server(c net.Conn, config *reality.Config) (net.Conn, error) {
realityConn, err := reality.Server(c, config)
realityConn, err := reality.Server(context.Background(), c, config)
return &Conn{Conn: realityConn}, err
}