Skip to content

Commit

Permalink
Fixed a byte order bug in BrowseService.cs.
Browse files Browse the repository at this point in the history
Changed BrowseService.cs due to recent changes in byte order handling.
Port numbers returned by resolved services should now be correct.
  • Loading branch information
sjvanrossum committed Sep 15, 2011
1 parent 0cfb15f commit 7d4a254
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private void OnResolveReply(ServiceRef sdRef, ServiceFlags flags, uint interface

InterfaceIndex = interfaceIndex;
FullName = fullname;
this.port = port;
this.port = (ushort)IPAddress.NetworkToHostOrder((short)port);
TxtRecord = new TxtRecord(txtLen, txtRecord);

sdRef.Deallocate();
Expand Down

0 comments on commit 7d4a254

Please sign in to comment.