mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-04 15:31:53 +03:00
[FIX] Perms handler для тестовю
This commit is contained in:
parent
c788fd4d2c
commit
e440fcb6e3
2 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
|||
import ru.gravit.launchserver.auth.handler.MemoryAuthHandler;
|
||||
import ru.gravit.launchserver.auth.hwid.AcceptHWIDHandler;
|
||||
import ru.gravit.launchserver.auth.hwid.HWIDHandler;
|
||||
import ru.gravit.launchserver.auth.permissions.DefaultPermissionsHandler;
|
||||
import ru.gravit.launchserver.auth.permissions.JsonFilePermissionsHandler;
|
||||
import ru.gravit.launchserver.auth.permissions.PermissionsHandler;
|
||||
import ru.gravit.launchserver.auth.protect.NoProtectHandler;
|
||||
|
@ -662,7 +663,8 @@ private void generateConfigIfNotExists(boolean testEnv) throws IOException {
|
|||
new RequestTextureProvider("http://example.com/skins/%username%.png", "http://example.com/cloaks/%username%.png")
|
||||
, "std")};
|
||||
newConfig.protectHandler = new NoProtectHandler();
|
||||
newConfig.permissionsHandler = new JsonFilePermissionsHandler();
|
||||
if (testEnv) newConfig.permissionsHandler = new DefaultPermissionsHandler();
|
||||
else newConfig.permissionsHandler = new JsonFilePermissionsHandler();
|
||||
newConfig.legacyPort = 7240;
|
||||
newConfig.legacyBindAddress = "0.0.0.0";
|
||||
newConfig.binaryName = "Launcher";
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{}
|
Loading…
Reference in a new issue