Skip to content

Commit fa55f04

Browse files
author
Petr Matousek
committed
FIX(p2p-receiver): set link target
1 parent 5e87458 commit fa55f04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/receiverClient.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ class Receiver extends CoreClient {
112112
});
113113

114114
this.container.on('receiver_open', function(context) {
115+
if (self.options.recvListen) {
116+
context.receiver.set_target({'address': self.options.address})
117+
}
115118
if(self.options.recvBrowse || self.options.count === 0) {
116119
context.receiver.flow(self.batch);
117120
if (self.options.timeout <= 0)

0 commit comments

Comments
 (0)