Skip to content

Commit d9c9aa0

Browse files
committed
Merge branch 'dev'
2 parents 1033d34 + 81804be commit d9c9aa0

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@
33
Each release usually includes various fixes and improvements.
44
The most noteworthy of these, as well as any features and breaking changes, are listed here.
55

6-
## v3.2.1
6+
## v3.2.1.1
7+
* Updated Lavaplayer to 1.3.19. This release includes a patch which fixes loading youtube URLs.
8+
https://github.com/sedmelluq/lavaplayer/pull/199
9+
* Made the WebSocket handshake return code 401 instead of 200 on bad auth. #208
10+
11+
Contributors:
12+
[@Frederikam](https://github.com/Frederikam) and
13+
[@Devoxin](https://github.com/Devoxin)
714

15+
16+
17+
## v3.2.1
818
* Update dependencies -- fixes frequent youtube HTTP errors
919
* Return `FriendlyException` message on `LOAD_FAILED` #174
1020
* Add option to disable `ytsearch` and `scsearch` #194

LavalinkServer/src/main/java/lavalink/server/io/HandshakeInterceptorImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import lavalink.server.config.ServerConfig
44
import org.slf4j.Logger
55
import org.slf4j.LoggerFactory
66
import org.springframework.beans.factory.annotation.Autowired
7+
import org.springframework.http.HttpStatus
78
import org.springframework.http.server.ServerHttpRequest
89
import org.springframework.http.server.ServerHttpResponse
910
import org.springframework.stereotype.Controller
@@ -26,15 +27,14 @@ constructor(private val serverConfig: ServerConfig, private val socketServer: So
2627
*/
2728
override fun beforeHandshake(request: ServerHttpRequest, response: ServerHttpResponse, wsHandler: WebSocketHandler,
2829
attributes: Map<String, Any>): Boolean {
29-
response.headers.add("Lavalink-Major-Version", "3")
30-
3130
val password = request.headers.getFirst("Authorization")
3231
val matches = password == serverConfig.password
3332

3433
if (matches) {
3534
log.info("Incoming connection from " + request.remoteAddress)
3635
} else {
3736
log.error("Authentication failed from " + request.remoteAddress)
37+
response.setStatusCode(HttpStatus.UNAUTHORIZED)
3838
}
3939

4040
val resumeKey = request.headers.getFirst("Resume-Key")

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ subprojects {
5151
ext {
5252
//@formatter:off
5353

54-
lavaplayerVersion = '1.3.17'
54+
lavaplayerVersion = '1.3.19'
5555
magmaVersion = '0.9.0'
5656
jdaNasVersion = '1.0.6'
5757
jappVersion = '1.3'

0 commit comments

Comments
 (0)