Skip to content

Commit

Permalink
Fixed port order byte order issue per PR: mono/Mono.Zeroconf#4
Browse files Browse the repository at this point in the history
  • Loading branch information
cerebrate committed Apr 30, 2017
1 parent b9684a7 commit d18cf77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Arkane.Zeroconf/Providers/Bonjour/BrowseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void OnResolveReply (ServiceRef sdRef,

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

sdRef.Deallocate () ;
Expand Down

0 comments on commit d18cf77

Please sign in to comment.