diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java index 962b2f4b..76629d4e 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java @@ -281,7 +281,7 @@ public class NettyConfig { public String downloadURL; public String launcherEXEURL; public String address; - public Map bindings = new HashMap<>(); + public Map bindings = new HashMap<>(); public NettyPerformanceConfig performance; public NettyBindAddress[] binds; public LogLevel logLevel = LogLevel.DEBUG; diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/json/update/UpdateResponse.java b/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/json/update/UpdateResponse.java index 34d75c14..b326f1c0 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/json/update/UpdateResponse.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/websocket/json/update/UpdateResponse.java @@ -39,7 +39,13 @@ public void execute(ChannelHandlerContext ctx, Client client) { return; } String url = LaunchServer.server.config.netty.downloadURL.replace("%dirname%", dirName); - if (server.config.netty.bindings.get(dirName) != null) url = server.config.netty.bindings.get(dirName); - service.sendObject(ctx, new UpdateRequestEvent(dir.object, url)); + boolean zip = false; + if (server.config.netty.bindings.get(dirName) != null) + { + LaunchServer.NettyUpdatesBind bind = server.config.netty.bindings.get(dirName); + url = bind.url; + zip = bind.zip; + } + service.sendObject(ctx, new UpdateRequestEvent(dir.object, url, zip)); } }