diff --git a/src/main/java/me/ayunami2000/ayungee/WebSocketProxy.java b/src/main/java/me/ayunami2000/ayungee/WebSocketProxy.java index 5b74212..2e614d4 100644 --- a/src/main/java/me/ayunami2000/ayungee/WebSocketProxy.java +++ b/src/main/java/me/ayunami2000/ayungee/WebSocketProxy.java @@ -30,6 +30,7 @@ public class WebSocketProxy extends WebSocketServer { conn.close(); return; } + if (origin.contains("://")) origin = origin.substring(origin.indexOf("://") + 3); if (!Main.originWhitelist.isEmpty() && !Main.originWhitelist.contains(origin)) { conn.close(); return; diff --git a/target/ayungee-1.0-SNAPSHOT-jar-with-dependencies.jar b/target/ayungee-1.0-SNAPSHOT-jar-with-dependencies.jar index 77e314a..93eaed4 100644 Binary files a/target/ayungee-1.0-SNAPSHOT-jar-with-dependencies.jar and b/target/ayungee-1.0-SNAPSHOT-jar-with-dependencies.jar differ