mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 11:23:32 +02:00
chore: Remove unnecessary if
in httpupgrade (#3413)
This commit is contained in:
parent
075051a693
commit
459504300c
1 changed files with 1 additions and 5 deletions
|
@ -78,12 +78,8 @@ func (s *server) Handle(conn net.Conn) (stat.Connection, error) {
|
|||
Port: int(0),
|
||||
}
|
||||
}
|
||||
if remoteAddr == nil {
|
||||
return nil, newError("remoteAddr is nil")
|
||||
}
|
||||
|
||||
conn = newConnection(conn, remoteAddr)
|
||||
return stat.Connection(conn), nil
|
||||
return stat.Connection(newConnection(conn, remoteAddr)), nil
|
||||
}
|
||||
|
||||
func (s *server) keepAccepting() {
|
||||
|
|
Loading…
Reference in a new issue