mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 15:03:02 +00:00
chore: Remove unnecessary if
in httpupgrade (#3413)
This commit is contained in:
parent
075051a693
commit
459504300c
@ -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 New Issue
Block a user