mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-25 22:56:04 +03: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),
|
Port: int(0),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if remoteAddr == nil {
|
|
||||||
return nil, newError("remoteAddr is nil")
|
|
||||||
}
|
|
||||||
|
|
||||||
conn = newConnection(conn, remoteAddr)
|
return stat.Connection(newConnection(conn, remoteAddr)), nil
|
||||||
return stat.Connection(conn), nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *server) keepAccepting() {
|
func (s *server) keepAccepting() {
|
||||||
|
Loading…
Reference in New Issue
Block a user