Commit 2045dd28 authored by memetrollsXD's avatar memetrollsXD
Browse files

Notify user that new pw was used

parent 8f811953
...@@ -184,6 +184,7 @@ public final class DispatchServer { ...@@ -184,6 +184,7 @@ public final class DispatchServer {
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
kmf.init(ks, keystorePassword); kmf.init(ks, keystorePassword);
} catch (Exception e) { } catch (Exception e) {
Grasscutter.getLogger().warn("[Dispatch] Unable to load keystore. Using default keystore password...");
KeyStore ks = KeyStore.getInstance("PKCS12"); KeyStore ks = KeyStore.getInstance("PKCS12");
ks.load(fis, "123456"); ks.load(fis, "123456");
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment