Don't allow file-dev in proxy mode

pull/1100/head
Ryan Tharp 5 years ago committed by GitHub
parent f134c6ae48
commit 0d40ee7ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -588,6 +588,14 @@ class LokiAppDotNetServerAPI {
}
// else will fail validation later
// if in proxy mode, don't allow "file-dev."...
// it only supports "file."... host.
if (window.lokiFeatureFlags.useSnodeProxy) {
pubKeyAB = window.Signal.Crypto.base64ToArrayBuffer(
LOKIFOUNDATION_FILESERVER_PUBKEY
);
}
// do we have their pubkey locally?
// FIXME: this._server won't be set yet...
// can't really do this for the file server because we'll need the key

Loading…
Cancel
Save