Skip to content

Commit 4d42259

Browse files
committed
Merge branch 'release/0.3.11-beta'
2 parents 30f4302 + 3e8dda1 commit 4d42259

7 files changed

+7
-4
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9-
## [0.3.10] - 2018-01-06
9+
## [0.3.11] - 2018-01-06
1010

1111
### Changed
1212
- Fixed IRI TCP negotiation bug #2
Binary file not shown.
Binary file not shown.
Binary file not shown.

dist/node/node.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ var Node = function (_Base) {
326326
UDPPort = _getHeaderIdentifiers2.UDPPort,
327327
remoteKey = _getHeaderIdentifiers2.remoteKey,
328328
name = _getHeaderIdentifiers2.name,
329-
protocol = _getHeaderIdentifiers2.protocol;
329+
wishedProtocol = _getHeaderIdentifiers2.protocol;
330+
331+
var protocol = _this7._negotiateProtocol(wishedProtocol);
330332

331333
_this7.list.add({
332334
hostname: address,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nelson.cli",
3-
"version": "0.3.10",
3+
"version": "0.3.11",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/SemkoDev/nelson.cli.git"

src/node/node.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ class Node extends Base {
224224
this.server.on('connection', (ws, req) => {
225225
this.log('incoming connection established'.green, req.connection.remoteAddress);
226226
const { remoteAddress: address } = req.connection;
227-
const { port, TCPPort, UDPPort, remoteKey, name, protocol } = this._getHeaderIdentifiers(req.headers);
227+
const { port, TCPPort, UDPPort, remoteKey, name, protocol: wishedProtocol } = this._getHeaderIdentifiers(req.headers);
228+
const protocol = this._negotiateProtocol(wishedProtocol);
228229

229230
this.list.add({
230231
hostname: address,

0 commit comments

Comments
 (0)