feat: added config file
Some checks are pending
Build and test / build-and-test (push) Waiting to run
Some checks are pending
Build and test / build-and-test (push) Waiting to run
This commit is contained in:
@@ -36,8 +36,10 @@ public class WSServer extends WebSocketServer {
|
||||
|
||||
public WSServer(InetSocketAddress address, String authToken) throws NoSuchAlgorithmException {
|
||||
super(address);
|
||||
this._authToken = MessageDigest.getInstance("SHA-256")
|
||||
.digest(authToken.getBytes(StandardCharsets.UTF_8));
|
||||
if (!authToken.isEmpty()) {
|
||||
this._authToken = MessageDigest.getInstance("SHA-256")
|
||||
.digest(authToken.getBytes(StandardCharsets.UTF_8));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user