summaryrefslogtreecommitdiffhomepage
path: root/app/lib/backend.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-03-21 18:14:15 +0000
committerAndrej Mihajlov <and@codeispoetry.ru>2017-03-21 18:14:15 +0000
commitcf235a151d4f5d67f1e8e1656e831cdfbc17a22d (patch)
tree39d85d696da3c9260a7cb1974f8dbe49ac4859a8 /app/lib/backend.js
parentfca751a517b2b35b8316b5c1f5dab8f7a130953d (diff)
downloadmullvadvpn-cf235a151d4f5d67f1e8e1656e831cdfbc17a22d.tar.xz
mullvadvpn-cf235a151d4f5d67f1e8e1656e831cdfbc17a22d.zip
Display user out of time error
Diffstat (limited to 'app/lib/backend.js')
-rw-r--r--app/lib/backend.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js
index 400e2bdfc9..0151bf2cda 100644
--- a/app/lib/backend.js
+++ b/app/lib/backend.js
@@ -408,12 +408,7 @@ export default class Backend extends EventEmitter {
timer = setTimeout(() => {
let err = null;
-
- // Prototype: the US servers will throw error during connect
- if(/us\d+\.mullvad\.net/.test(addr)) {
- err = new BackendError(Backend.ErrorType.noCredit);
- }
-
+
this._connStatus = Backend.ConnectionState.connected;
// emit: connect