mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
add another default peer, connect to 2
This commit is contained in:
parent
1e08e3fc09
commit
875ea435a6
@ -6,11 +6,11 @@ import Gun from 'gun';
|
||||
|
||||
const MAX_PEER_LIST_SIZE = 10;
|
||||
const ELECTRON_GUN_URL = 'http://localhost:8767/gun';
|
||||
let maxConnectedPeers = Helpers.isElectron ? 2 : 1;
|
||||
let maxConnectedPeers = 3;
|
||||
const DEFAULT_PEERS = {};
|
||||
|
||||
DEFAULT_PEERS['https://gun-rs.iris.to/gun'] = {};
|
||||
// DEFAULT_PEERS['https://gun-us.herokuapp.com/gun'] = {}; // disable for now
|
||||
DEFAULT_PEERS['https://gun-us.herokuapp.com/gun'] = {};
|
||||
const loc = window.location;
|
||||
const host = loc.host;
|
||||
const is_localhost_but_not_dev = host.startsWith('localhost') && host !== 'localhost:8080';
|
||||
|
Loading…
Reference in New Issue
Block a user