Skip to content

Commit ea1548a

Browse files
committed
remove extra peer_id check
1 parent 557b7f1 commit ea1548a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ Server.prototype._onHttpRequest = function (req, res) {
137137
if (!peerId) return error('invalid peer_id')
138138
if (peerId.length !== 20) return error('invalid peer_id')
139139
if (!port) return error('invalid port')
140-
if (!peerId) return error('invalid peer_id')
141140

142141
var ip = self._trustProxy
143142
? req.headers['x-forwarded-for'] || req.connection.remoteAddress

0 commit comments

Comments
 (0)