|
@@ -173,10 +173,10 @@ Peer.prototype.connect = function(peer, metadata, options) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- options = util.extend(options, {
|
|
|
+ options = util.extend({
|
|
|
metadata: metadata,
|
|
|
config: this._options.config,
|
|
|
- });
|
|
|
+ }, options);
|
|
|
var connection = new DataConnection(this.id, peer, this._socket, options);
|
|
|
this._attachConnectionListeners(connection);
|
|
|
|