Skip to content

Commit f7b124c

Browse files
committed
Added method to set peerid
1 parent 0755e4c commit f7b124c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/src/com/biglybt/core/peermanager/messaging/bittorrent/BTHandshake.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static void setFastExtensionEnabled(boolean enabled) {
8787

8888
private final byte[] reserved_bytes;
8989
private final byte[] datahash_bytes;
90-
private final byte[] peer_id_bytes;
90+
private byte[] peer_id_bytes;
9191
private final byte version;
9292

9393
private static byte[] duplicate(byte[] b) {
@@ -130,9 +130,7 @@ private void constructBuffer() {
130130

131131
public byte[] getPeerId() { return peer_id_bytes; }
132132

133-
134-
135-
133+
public void setPeerId( byte[] id ){ peer_id_bytes = id; }
136134

137135
// message
138136
@Override

0 commit comments

Comments
 (0)